mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-22 04:57:16 +08:00
refactor: 系统参数表结构新增ID、类别字段
This commit is contained in:
@@ -16,15 +16,11 @@
|
||||
|
||||
package top.continew.admin.system.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import top.continew.starter.extension.crud.model.entity.BaseUpdateDO;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 参数实体
|
||||
@@ -34,11 +30,16 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_option")
|
||||
public class OptionDO implements Serializable {
|
||||
public class OptionDO extends BaseUpdateDO {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 类别
|
||||
*/
|
||||
private String category;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@@ -47,7 +48,6 @@ public class OptionDO implements Serializable {
|
||||
/**
|
||||
* 键
|
||||
*/
|
||||
@TableId
|
||||
private String code;
|
||||
|
||||
/**
|
||||
@@ -64,16 +64,4 @@ public class OptionDO implements Serializable {
|
||||
* 描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Long updateUser;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
package top.continew.admin.system.model.query;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
import top.continew.starter.data.core.annotation.Query;
|
||||
import top.continew.starter.data.core.enums.QueryType;
|
||||
@@ -43,7 +42,13 @@ public class OptionQuery implements Serializable {
|
||||
* 键列表
|
||||
*/
|
||||
@Schema(description = "键列表", example = "site_title,site_copyright")
|
||||
@NotEmpty(message = "键不能为空")
|
||||
@Query(type = QueryType.IN)
|
||||
private List<String> code;
|
||||
|
||||
/**
|
||||
* 类别
|
||||
*/
|
||||
@Schema(description = "类别", example = "SITE")
|
||||
@Query
|
||||
private String category;
|
||||
}
|
Reference in New Issue
Block a user