package com.ltgk.system.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * APP配置表 (SysAppConfig)实体类
 *
 * @author Qi ChengBin
 * @date 2025-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "sys_app_config")
@ApiModel(value = "APP配置表对象", description = "SysAppConfig表")
public class SysAppConfig extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "app版本")
    @TableField(value = "app_version")
    private String appVersion;

    @ApiModelProperty(value = "app文件路径")
    @TableField(value = "app_file_url")
    private String appFileUrl;

    @ApiModelProperty(value = "app文件名称")
    @TableField(value = "app_file_name")
    private String appFileName;

    @ApiModelProperty(value = "文件系统类型（0 - Android,1 - ios, 2- HarmonyOS）")
    @TableField(value = "app_os")
    private Integer appOs;

    @ApiModelProperty(value = "文件类型(0-公众端，1-监管端)")
    @TableField(value = "app_type")
    private Integer appType;

    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    @TableField(value = "del_flag")
    @TableLogic(delval = "1", value = "0")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    @TableField(value = "area_code")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @TableField(value = "area_name")
    private String areaName;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private String endTime;
}

