package com.ruoyi.system.domain; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.time.LocalDateTime; @TableName("tb_agreement") @ApiModel("协议表") @Data public class Agreement { @TableId(type = IdType.AUTO) @ApiModelProperty("主键ID") private Integer id; @TableField("type") @ApiModelProperty("协议类型(1=用户协议,2=隐私协议,,3=下单须知,4=关于我们,5=注销协议)") private Integer type; @TableField("content") @ApiModelProperty("协议内容") private String content; @TableField(value = "create_time") @ApiModelProperty("创建时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; }