作者 王兆博

客户端的协议

  1 +package com.example.client.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.TableId;
  4 +import com.baomidou.mybatisplus.annotation.TableName;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +import lombok.experimental.Accessors;
  8 +
  9 +import java.io.Serializable;
  10 +import java.util.Date;
  11 +
  12 +/**
  13 + * 协议对象 c_set_agreement
  14 + *
  15 + * @author ruoyi
  16 + * @date 2021-09-17
  17 + */
  18 +@Data
  19 +@NoArgsConstructor
  20 +@Accessors(chain = true)
  21 +@TableName("c_set_agreement")
  22 +public class CSetAgreement implements Serializable {
  23 +
  24 + private static final long serialVersionUID=1L;
  25 +
  26 +
  27 + /**
  28 + * $column.columnComment
  29 + */
  30 + @TableId(value = "id")
  31 + private Integer id;
  32 +
  33 + /**
  34 + * 协议
  35 + */
  36 + private String agreement;
  37 +
  38 + /**
  39 + * 隐私政策
  40 + */
  41 + private String policy;
  42 +
  43 + /**
  44 + * 版本
  45 + */
  46 + private String versions;
  47 +
  48 + /**
  49 + * 帮助
  50 + */
  51 + private String assistance;
  52 +
  53 + /**
  54 + * 创建时间
  55 + */
  56 + private Date creatorTime;
  57 +
  58 + /**
  59 + * 创建人
  60 + */
  61 + private Date userId;
  62 +
  63 +}
  1 +package com.example.client.domain.bo;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.Data;
  6 +import lombok.EqualsAndHashCode;
  7 +
  8 +import java.io.Serializable;
  9 +import java.util.Date;
  10 +
  11 +/**
  12 + * 协议业务对象 c_set_agreement
  13 + *
  14 + * @author ruoyi
  15 + * @date 2021-09-17
  16 + */
  17 +
  18 +@Data
  19 +
  20 +@ApiModel("协议业务对象")
  21 +public class CSetAgreementBo implements Serializable {
  22 +
  23 + /**
  24 + * $column.columnComment
  25 + */
  26 + @ApiModelProperty("$column.columnComment")
  27 + private Integer id;
  28 +
  29 + /**
  30 + * 协议
  31 + */
  32 + @ApiModelProperty("协议")
  33 + private String agreement;
  34 +
  35 + /**
  36 + * 隐私政策
  37 + */
  38 + @ApiModelProperty("隐私政策")
  39 + private String policy;
  40 +
  41 + /**
  42 + * 版本
  43 + */
  44 + @ApiModelProperty("版本")
  45 + private String versions;
  46 +
  47 + /**
  48 + * 帮助
  49 + */
  50 + @ApiModelProperty("帮助")
  51 + private String assistance;
  52 +
  53 + /**
  54 + * 创建时间
  55 + */
  56 + @ApiModelProperty("创建时间")
  57 + private Date creatorTime;
  58 +
  59 + /**
  60 + * 创建人
  61 + */
  62 + @ApiModelProperty("创建人")
  63 + private Date userId;
  64 +
  65 +
  66 + /**
  67 + * 分页大小
  68 + */
  69 + @ApiModelProperty("分页大小")
  70 + private Integer pageSize;
  71 +
  72 + /**
  73 + * 当前页数
  74 + */
  75 + @ApiModelProperty("当前页数")
  76 + private Integer pageNum;
  77 +
  78 + /**
  79 + * 排序列
  80 + */
  81 + @ApiModelProperty("排序列")
  82 + private String orderByColumn;
  83 +
  84 + /**
  85 + * 排序的方向desc或者asc
  86 + */
  87 + @ApiModelProperty(value = "排序的方向", example = "asc,desc")
  88 + private String isAsc;
  89 +
  90 +}
  1 +package com.example.client.mapper;
  2 +
  3 +import cn.bronet.admin.common.core.mybatisplus.core.BaseMapperPlus;
  4 +import com.example.client.domain.CSetAgreement;
  5 +
  6 +/**
  7 + * 协议Mapper接口
  8 + *
  9 + * @author ruoyi
  10 + * @date 2021-09-17
  11 + */
  12 +public interface CSetAgreementMapper extends BaseMapperPlus<CSetAgreement> {
  13 +
  14 +}
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.example.client.mapper.CSetAgreementMapper">
  6 +
  7 + <resultMap type="com.example.client.domain.CSetAgreement" id="CSetAgreementResult">
  8 + <result property="id" column="id"/>
  9 + <result property="agreement" column="agreement"/>
  10 + <result property="policy" column="policy"/>
  11 + <result property="versions" column="versions"/>
  12 + <result property="assistance" column="assistance"/>
  13 + <result property="creatorTime" column="creator_time"/>
  14 + <result property="userId" column="user_id"/>
  15 + </resultMap>
  16 +
  17 +
  18 +</mapper>