Commit 49a58d75 by 孙喜旺

api注释

1 parent da93085f
...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotation.TableName; ...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.linkwechat.common.core.domain.BaseEntity; import com.linkwechat.common.core.domain.BaseEntity;
import com.linkwechat.common.utils.SnowFlakeUtil; import com.linkwechat.common.utils.SnowFlakeUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
...@@ -20,6 +22,7 @@ import java.util.Date; ...@@ -20,6 +22,7 @@ import java.util.Date;
* @Description: * @Description:
* @Date: create in 2020/9/21 0021 23:55 * @Date: create in 2020/9/21 0021 23:55
*/ */
@ApiModel
@Data @Data
@Builder @Builder
@AllArgsConstructor @AllArgsConstructor
...@@ -29,18 +32,22 @@ public class WeGroup { ...@@ -29,18 +32,22 @@ public class WeGroup {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId @TableId
@ApiModelProperty(value = "群聊id")
private String chatId; private String chatId;
@ApiModelProperty(value = "群名")
private String groupName; private String groupName;
@TableField(exist = false) @TableField(exist = false)
private Long memberNum; private Long memberNum;
@ApiModelProperty(value = "群公告")
private String notice; private String notice;
@ApiModelProperty(value = "群主userId")
private String owner; private String owner;
@ApiModelProperty(value = "0 - 正常;1 - 跟进人离职;2 - 离职继承中;3 - 离职继承完成")
private Integer status; private Integer status;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
......
...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField; ...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.linkwechat.common.annotation.Excel; import com.linkwechat.common.annotation.Excel;
import com.linkwechat.common.core.domain.BaseEntity; import com.linkwechat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
...@@ -19,6 +20,7 @@ import java.util.List; ...@@ -19,6 +20,7 @@ import java.util.List;
* @author leejoker <1056650571@qq.com> * @author leejoker <1056650571@qq.com>
* @date 2021-01-27 * @date 2021-01-27
*/ */
@ApiModel
@Data @Data
public class WeTaskFission extends BaseEntity { public class WeTaskFission extends BaseEntity {
private static final long serialVersionUID = -3145843701063325455L; private static final long serialVersionUID = -3145843701063325455L;
...@@ -30,24 +32,28 @@ public class WeTaskFission extends BaseEntity { ...@@ -30,24 +32,28 @@ public class WeTaskFission extends BaseEntity {
/** /**
* 任务类型:1 任务宝 2 群裂变 * 任务类型:1 任务宝 2 群裂变
*/ */
@ApiModelProperty(value = "任务类型:1 任务宝 2 群裂变")
private Integer fissionType; private Integer fissionType;
/** /**
* 任务活动名称 * 任务活动名称
*/ */
@Excel(name = "任务活动名称") @Excel(name = "任务活动名称")
@ApiModelProperty(value = "任务活动名称")
private String taskName; private String taskName;
/** /**
* 裂变引导语 * 裂变引导语
*/ */
@Excel(name = "裂变引导语") @Excel(name = "裂变引导语")
@ApiModelProperty(value = "裂变引导语")
private String fissInfo; private String fissInfo;
/** /**
* 裂变客户数量 * 裂变客户数量
*/ */
@Excel(name = "裂变客户数量") @Excel(name = "裂变客户数量")
@ApiModelProperty(value = "裂变客户数量")
private Long fissNum; private Long fissNum;
/** /**
...@@ -55,6 +61,7 @@ public class WeTaskFission extends BaseEntity { ...@@ -55,6 +61,7 @@ public class WeTaskFission extends BaseEntity {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(value = "活动开始时间")
private Date startTime; private Date startTime;
/** /**
...@@ -62,42 +69,49 @@ public class WeTaskFission extends BaseEntity { ...@@ -62,42 +69,49 @@ public class WeTaskFission extends BaseEntity {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(value = "活动结束时间")
private Date overTime; private Date overTime;
/** /**
* 发起成员 * 发起成员
*/ */
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty(value = "发起成员")
private List<WeTaskFissionStaff> taskFissionStaffs; private List<WeTaskFissionStaff> taskFissionStaffs;
/** /**
* 客户群 * 客户群
*/ */
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty(value = "客户群")
private List<WeGroup> taskFissionWeGroups; private List<WeGroup> taskFissionWeGroups;
/** /**
* 客户标签id列表,当为全部时保存为all * 客户标签id列表,当为全部时保存为all
*/ */
@Excel(name = "客户标签id列表,当为全部时保存为all") @Excel(name = "客户标签id列表,当为全部时保存为all")
@ApiModelProperty(value = "客户标签id列表,当为全部时保存为all")
private String customerTagId; private String customerTagId;
/** /**
* 客户标签名称列表,为all是可为空 * 客户标签名称列表,为all是可为空
*/ */
@Excel(name = "客户标签名称列表,为all是可为空") @Excel(name = "客户标签名称列表,为all是可为空")
@ApiModelProperty(value = "客户标签名称列表,为all是可为空")
private String customerTag; private String customerTag;
/** /**
* 海报id * 海报id
*/ */
@Excel(name = "海报id") @Excel(name = "海报id")
@ApiModelProperty(value = "海报id")
private Long postersId; private Long postersId;
/** /**
* 裂变海报路径 * 裂变海报路径
*/ */
@Excel(name = "裂变海报路径") @Excel(name = "裂变海报路径")
@ApiModelProperty(value = "裂变海报路径")
private String postersUrl; private String postersUrl;
/** /**
...@@ -119,36 +133,42 @@ public class WeTaskFission extends BaseEntity { ...@@ -119,36 +133,42 @@ public class WeTaskFission extends BaseEntity {
* 任务裂变目标员工二维码 * 任务裂变目标员工二维码
*/ */
@Excel(name = "任务裂变目标二维码") @Excel(name = "任务裂变目标二维码")
@ApiModelProperty(value = "任务裂变目标二维码")
private String fissQrcode; private String fissQrcode;
/** /**
* 兑奖链接 * 兑奖链接
*/ */
@Excel(name = "兑奖链接") @Excel(name = "兑奖链接")
@ApiModelProperty(value = "兑奖链接")
private String rewardUrl; private String rewardUrl;
/** /**
* 兑奖链接图片 * 兑奖链接图片
*/ */
@Excel(name = "兑奖链接图片") @Excel(name = "兑奖链接图片")
@ApiModelProperty(value = "兑奖链接图片")
private String rewardImageUrl; private String rewardImageUrl;
/** /**
* 兑奖规则 * 兑奖规则
*/ */
@Excel(name = "兑奖规则") @Excel(name = "兑奖规则")
@ApiModelProperty(value = "兑奖规则")
private String rewardRule; private String rewardRule;
/** /**
* 任务裂变活动状态,1 进行中 2 已结束 * 任务裂变活动状态,1 进行中 2 已结束
*/ */
@Excel(name = "任务裂变活动状态,1 进行中 2 已结束") @Excel(name = "任务裂变活动状态,1 进行中 2 已结束")
@ApiModelProperty(value = "任务裂变活动状态,1 进行中 2 已结束")
private Integer fissStatus; private Integer fissStatus;
/** /**
* 新客欢迎语 * 新客欢迎语
*/ */
@Excel(name = "新客欢迎语") @Excel(name = "新客欢迎语")
@ApiModelProperty(value = "新客欢迎语")
private String welcomeMsg; private String welcomeMsg;
@Override @Override
......
...@@ -2,6 +2,8 @@ package com.linkwechat.wecom.domain; ...@@ -2,6 +2,8 @@ package com.linkwechat.wecom.domain;
import com.linkwechat.common.annotation.Excel; import com.linkwechat.common.annotation.Excel;
import com.linkwechat.common.core.domain.BaseEntity; import com.linkwechat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
...@@ -12,6 +14,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -12,6 +14,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @author leejoker * @author leejoker
* @date 2021-01-20 * @date 2021-01-20
*/ */
@ApiModel
@Data @Data
public class WeTaskFissionStaff extends BaseEntity { public class WeTaskFissionStaff extends BaseEntity {
private static final long serialVersionUID = -8615355081305655759L; private static final long serialVersionUID = -8615355081305655759L;
...@@ -24,24 +27,28 @@ public class WeTaskFissionStaff extends BaseEntity { ...@@ -24,24 +27,28 @@ public class WeTaskFissionStaff extends BaseEntity {
* 任务裂变表id * 任务裂变表id
*/ */
@Excel(name = "任务裂变表id") @Excel(name = "任务裂变表id")
@ApiModelProperty(value = "任务裂变表id")
private Long taskFissionId; private Long taskFissionId;
/** /**
* 员工或机构,1 组织机构 2 成员 3 全部 * 员工或机构,1 组织机构 2 成员 3 全部
*/ */
@Excel(name = "员工或机构,1 组织机构 2 成员 3 全部") @Excel(name = "员工或机构,1 组织机构 2 成员 3 全部")
@ApiModelProperty(value = "员工或机构,1 组织机构 2 成员 3 全部")
private Integer staffType; private Integer staffType;
/** /**
* 员工或组织机构id,为全部时为空 * 员工或组织机构id,为全部时为空
*/ */
@Excel(name = "员工或组织机构id,为全部时为空") @Excel(name = "员工或组织机构id,为全部时为空")
@ApiModelProperty(name = "员工或组织机构id,为全部时为空")
private String staffId; private String staffId;
/** /**
* 员工或组织机构姓名,类型为全部时,为空 * 员工或组织机构姓名,类型为全部时,为空
*/ */
@Excel(name = "员工或组织机构姓名,类型为全部时,为空") @Excel(name = "员工或组织机构姓名,类型为全部时,为空")
@ApiModelProperty(name = "员工或组织机构姓名,类型为全部时,为空")
private String staffName; private String staffName;
@Override @Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!