作者 王兆博

客户端的协议

package com.example.client.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 协议对象 c_set_agreement
*
* @author ruoyi
* @date 2021-09-17
*/
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("c_set_agreement")
public class CSetAgreement implements Serializable {
private static final long serialVersionUID=1L;
/**
* $column.columnComment
*/
@TableId(value = "id")
private Integer id;
/**
* 协议
*/
private String agreement;
/**
* 隐私政策
*/
private String policy;
/**
* 版本
*/
private String versions;
/**
* 帮助
*/
private String assistance;
/**
* 创建时间
*/
private Date creatorTime;
/**
* 创建人
*/
private Date userId;
}
... ...
package com.example.client.domain.bo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
* 协议业务对象 c_set_agreement
*
* @author ruoyi
* @date 2021-09-17
*/
@Data
@ApiModel("协议业务对象")
public class CSetAgreementBo implements Serializable {
/**
* $column.columnComment
*/
@ApiModelProperty("$column.columnComment")
private Integer id;
/**
* 协议
*/
@ApiModelProperty("协议")
private String agreement;
/**
* 隐私政策
*/
@ApiModelProperty("隐私政策")
private String policy;
/**
* 版本
*/
@ApiModelProperty("版本")
private String versions;
/**
* 帮助
*/
@ApiModelProperty("帮助")
private String assistance;
/**
* 创建时间
*/
@ApiModelProperty("创建时间")
private Date creatorTime;
/**
* 创建人
*/
@ApiModelProperty("创建人")
private Date userId;
/**
* 分页大小
*/
@ApiModelProperty("分页大小")
private Integer pageSize;
/**
* 当前页数
*/
@ApiModelProperty("当前页数")
private Integer pageNum;
/**
* 排序列
*/
@ApiModelProperty("排序列")
private String orderByColumn;
/**
* 排序的方向desc或者asc
*/
@ApiModelProperty(value = "排序的方向", example = "asc,desc")
private String isAsc;
}
... ...
package com.example.client.mapper;
import cn.bronet.admin.common.core.mybatisplus.core.BaseMapperPlus;
import com.example.client.domain.CSetAgreement;
/**
* 协议Mapper接口
*
* @author ruoyi
* @date 2021-09-17
*/
public interface CSetAgreementMapper extends BaseMapperPlus<CSetAgreement> {
}
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.example.client.mapper.CSetAgreementMapper">
<resultMap type="com.example.client.domain.CSetAgreement" id="CSetAgreementResult">
<result property="id" column="id"/>
<result property="agreement" column="agreement"/>
<result property="policy" column="policy"/>
<result property="versions" column="versions"/>
<result property="assistance" column="assistance"/>
<result property="creatorTime" column="creator_time"/>
<result property="userId" column="user_id"/>
</resultMap>
</mapper>
... ...