Administrator
2024-05-27 f5a7f6c30bc5fb13eb538b5856a663b1ba0667b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.dy.pipIrrGlobal.pojoBa;
 
/**
 * @author ZhuBaoMin
 * @date 2024-05-27 9:17
 * @LastEditTime 2024-05-27 9:17
 * @Description
 */
 
import com.alibaba.fastjson2.annotation.JSONField;
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dy.common.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.*;
 
/**
 * 系统配置表
 */
 
@TableName(value="ba_settings", autoResultMap = true)
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "系统配置实体")
public class BaSettings implements BaseEntity {
    public static final long serialVersionUID = 202405271036001L;
 
    /**
    * 主键
    */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @TableId(type = IdType.INPUT)
    @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long id;
 
    /**
    * 配置项
    */
    @Schema(description = "配置项", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @NotBlank(message = "配置项不能为空")
    private String itemName;
 
    /**
    * 配置项值
    */
    @Schema(description = "配置项值", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @NotBlank(message = "配置项值不能为空")
    private String itemValue;
 
    /**
    * 备注信息
    */
    @Schema(description = "备注信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String remarks;
}