Commit 67c91599 by sunxiwang

api更新

1 parent c2fd3bc5
...@@ -55,7 +55,7 @@ public class WeCommunityNewGroupController extends BaseController { ...@@ -55,7 +55,7 @@ public class WeCommunityNewGroupController extends BaseController {
@ApiOperation(value = "查询新客自动拉群列表", httpMethod = "GET") @ApiOperation(value = "查询新客自动拉群列表", httpMethod = "GET")
@PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:list')") @PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(@RequestParam(value = "empleCodeName", required = false) String empleCodeName public TableDataInfo<List<WeCommunityNewGroupVo>> list(@RequestParam(value = "empleCodeName", required = false) String empleCodeName
, @RequestParam(value = "createBy", required = false) String createBy , @RequestParam(value = "createBy", required = false) String createBy
, @RequestParam(value = "beginTime", required = false) String beginTime , @RequestParam(value = "beginTime", required = false) String beginTime
, @RequestParam(value = "endTime", required = false) String endTime) { , @RequestParam(value = "endTime", required = false) String endTime) {
......
...@@ -8,7 +8,7 @@ import java.util.List; ...@@ -8,7 +8,7 @@ import java.util.List;
* *
* @author ruoyi * @author ruoyi
*/ */
public class TableDataInfo implements Serializable public class TableDataInfo<T> implements Serializable
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -16,7 +16,7 @@ public class TableDataInfo implements Serializable ...@@ -16,7 +16,7 @@ public class TableDataInfo implements Serializable
private long total; private long total;
/** 列表数据 */ /** 列表数据 */
private List<?> rows; private T rows;
/** 消息状态码 */ /** 消息状态码 */
private int code; private int code;
...@@ -37,7 +37,7 @@ public class TableDataInfo implements Serializable ...@@ -37,7 +37,7 @@ public class TableDataInfo implements Serializable
* @param list 列表数据 * @param list 列表数据
* @param total 总记录数 * @param total 总记录数
*/ */
public TableDataInfo(List<?> list, int total) public TableDataInfo(T list, int total)
{ {
this.rows = list; this.rows = list;
this.total = total; this.total = total;
...@@ -53,12 +53,12 @@ public class TableDataInfo implements Serializable ...@@ -53,12 +53,12 @@ public class TableDataInfo implements Serializable
this.total = total; this.total = total;
} }
public List<?> getRows() public T getRows()
{ {
return rows; return rows;
} }
public void setRows(List<?> rows) public void setRows(T rows)
{ {
this.rows = rows; this.rows = rows;
} }
......
...@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId; ...@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
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.Data; import lombok.Data;
...@@ -14,6 +16,7 @@ import lombok.Data; ...@@ -14,6 +16,7 @@ import lombok.Data;
* @author ruoyi * @author ruoyi
* @date 2020-10-04 * @date 2020-10-04
*/ */
@ApiModel
@Data @Data
@TableName("we_emple_code_tag") @TableName("we_emple_code_tag")
public class WeEmpleCodeTag public class WeEmpleCodeTag
...@@ -25,15 +28,19 @@ public class WeEmpleCodeTag ...@@ -25,15 +28,19 @@ public class WeEmpleCodeTag
private Long id= SnowFlakeUtil.nextId(); private Long id= SnowFlakeUtil.nextId();
/** 标签id */ /** 标签id */
@ApiModelProperty("标签id")
private String tagId; private String tagId;
/** 员工活码id */ /** 员工活码id */
@ApiModelProperty("员工活码id")
private Long empleCodeId; private Long empleCodeId;
/** 0:正常;2:删除; */ /** 0:正常;2:删除; */
@ApiModelProperty("0:正常;2:删除")
private Integer delFlag=new Integer(0); private Integer delFlag=new Integer(0);
/** 标签名 */ /** 标签名 */
@ApiModelProperty("标签名")
private String tagName; private String tagName;
......
...@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId; ...@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
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.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
...@@ -16,6 +18,7 @@ import java.util.Date; ...@@ -16,6 +18,7 @@ import java.util.Date;
* @author ruoyi * @author ruoyi
* @date 2020-10-04 * @date 2020-10-04
*/ */
@ApiModel
@Data @Data
@TableName("we_emple_code_use_scop") @TableName("we_emple_code_use_scop")
public class WeEmpleCodeUseScop public class WeEmpleCodeUseScop
...@@ -27,21 +30,27 @@ public class WeEmpleCodeUseScop ...@@ -27,21 +30,27 @@ public class WeEmpleCodeUseScop
private Long id = SnowFlakeUtil.nextId(); private Long id = SnowFlakeUtil.nextId();
/** 员工活码id */ /** 员工活码id */
@ApiModelProperty("员工活码id")
private Long empleCodeId; private Long empleCodeId;
/** 业务id类型1:组织机构id,2:成员id */ /** 业务id类型1:组织机构id,2:成员id */
@ApiModelProperty("业务id类型1:组织机构id,2:成员id")
private Integer businessIdType; private Integer businessIdType;
/** 活码类型下业务使用人的id */ /** 活码类型下业务使用人的id */
@ApiModelProperty("活码类型下业务使用人的id")
private String businessId; private String businessId;
/** 0:正常;2:删除; */ /** 0:正常;2:删除; */
@ApiModelProperty("0:正常;2:删除")
private Integer delFlag=new Integer(0); private Integer delFlag=new Integer(0);
/** 活码使用人员名称 */ /** 活码使用人员名称 */
@ApiModelProperty("活码使用人员名称")
private String businessName; private String businessName;
/** 活码使用人员手机号 */ /** 活码使用人员手机号 */
@ApiModelProperty("活码使用人员手机号")
@TableField(exist = false) @TableField(exist = false)
private String mobile; private String mobile;
......
...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotation.TableId; ...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.linkwechat.common.utils.SnowFlakeUtil; import com.linkwechat.common.utils.SnowFlakeUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
...@@ -17,6 +19,7 @@ import javax.validation.constraints.NotNull; ...@@ -17,6 +19,7 @@ import javax.validation.constraints.NotNull;
* @author ruoyi * @author ruoyi
* @date 2020-10-07 * @date 2020-10-07
*/ */
@ApiModel
@Data @Data
@TableName("we_group_code_actual") @TableName("we_group_code_actual")
public class WeGroupCodeActual public class WeGroupCodeActual
...@@ -29,37 +32,47 @@ public class WeGroupCodeActual ...@@ -29,37 +32,47 @@ public class WeGroupCodeActual
/** 实际群码 */ /** 实际群码 */
@NotNull(message = "实际群活码称不能为空") @NotNull(message = "实际群活码称不能为空")
@ApiModelProperty("实际群码")
private String actualGroupQrCode; private String actualGroupQrCode;
/** 群名称 */ /** 群名称 */
@NotNull(message = "群名称不能为空") @NotNull(message = "群名称不能为空")
@ApiModelProperty("群名称")
private String groupName; private String groupName;
/** 有效期 */ /** 有效期 */
@NotNull(message = "有效期不能为空") @NotNull(message = "有效期不能为空")
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty("有效期")
private Date effectTime; private Date effectTime;
/** 扫码次数限制 */ /** 扫码次数限制 */
@NotNull(message = "次数限制不能为空") @NotNull(message = "次数限制不能为空")
@ApiModelProperty("扫码次数限制")
private Long scanCodeTimesLimit; private Long scanCodeTimesLimit;
/** 群活码id */ /** 群活码id */
@NotNull(message = "群活码id不能为空") @NotNull(message = "群活码id不能为空")
@ApiModelProperty("群活码id")
private Long groupCodeId; private Long groupCodeId;
/** 客户群id */ /** 客户群id */
@ApiModelProperty("客户群id")
private String chatId; private String chatId;
/** 客户群名称 */ /** 客户群名称 */
@ApiModelProperty("客户群名称")
private String chatGroupName; private String chatGroupName;
/** 扫码次数 */ /** 扫码次数 */
@ApiModelProperty("扫码次数")
private Long scanCodeTimes; private Long scanCodeTimes;
/** 0:正常使用;2:删除; */ /** 0:正常使用;2:删除; */
@ApiModelProperty("0:正常使用;2:删除;")
private Long delFlag; private Long delFlag;
/** 0:使用中 */ /** 0:使用中 */
@ApiModelProperty("0:使用中")
private Long status; private Long status;
} }
...@@ -2,6 +2,8 @@ package com.linkwechat.wecom.domain; ...@@ -2,6 +2,8 @@ package com.linkwechat.wecom.domain;
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.Data; import lombok.Data;
/** /**
...@@ -9,6 +11,7 @@ import lombok.Data; ...@@ -9,6 +11,7 @@ import lombok.Data;
* @author: KEWEN * @author: KEWEN
* @create: 2020-09-21 21:17 * @create: 2020-09-21 21:17
**/ **/
@ApiModel
@Data @Data
public class WeMaterial extends BaseEntity { public class WeMaterial extends BaseEntity {
...@@ -19,36 +22,43 @@ public class WeMaterial extends BaseEntity { ...@@ -19,36 +22,43 @@ public class WeMaterial extends BaseEntity {
/** /**
* 分类id * 分类id
*/ */
@ApiModelProperty("分类id")
private Long categoryId; private Long categoryId;
/** /**
* 本地资源文件地址 * 本地资源文件地址
*/ */
@ApiModelProperty("本地资源文件地址")
private String materialUrl; private String materialUrl;
/** /**
* 文本内容、图片文案 * 文本内容、图片文案
*/ */
@ApiModelProperty("文本内容、图片文案")
private String content; private String content;
/** /**
* 图片名称 * 图片名称
*/ */
@ApiModelProperty("图片名称")
private String materialName; private String materialName;
/** /**
* 摘要 * 摘要
*/ */
@ApiModelProperty("摘要")
private String digest; private String digest;
/** /**
* 封面本地资源文件 * 封面本地资源文件
*/ */
@ApiModelProperty("封面本地资源文件")
private String coverUrl; private String coverUrl;
/** /**
* 音频时长 * 音频时长
*/ */
@ApiModelProperty("音频时长")
private String audioTime; private String audioTime;
} }
...@@ -3,6 +3,8 @@ package com.linkwechat.wecom.domain.dto; ...@@ -3,6 +3,8 @@ package com.linkwechat.wecom.domain.dto;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.linkwechat.wecom.domain.WeEmpleCodeTag; import com.linkwechat.wecom.domain.WeEmpleCodeTag;
import com.linkwechat.wecom.domain.WeEmpleCodeUseScop; import com.linkwechat.wecom.domain.WeEmpleCodeUseScop;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
...@@ -14,48 +16,57 @@ import java.util.List; ...@@ -14,48 +16,57 @@ import java.util.List;
* @author kewen * @author kewen
* @date 2021-02-19 * @date 2021-02-19
*/ */
@ApiModel
@Data @Data
public class WeCommunityNewGroupDto { public class WeCommunityNewGroupDto {
/** /**
* 活动场景 * 活动场景
*/ */
@ApiModelProperty("活动场景")
private String activityScene; private String activityScene;
/** /**
* 欢迎语 * 欢迎语
*/ */
@ApiModelProperty("欢迎语")
private String welcomeMsg; private String welcomeMsg;
@NotEmpty(message = "员工信息不能为空") @NotEmpty(message = "员工信息不能为空")
/** 使用员工 */ /** 使用员工 */
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("使用员工")
private List<WeEmpleCodeUseScop> weEmpleCodeUseScops; private List<WeEmpleCodeUseScop> weEmpleCodeUseScops;
/** /**
* 扫码标签 * 扫码标签
*/ */
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("扫码标签")
private List<WeEmpleCodeTag> weEmpleCodeTags; private List<WeEmpleCodeTag> weEmpleCodeTags;
/** /**
* 群活码ID * 群活码ID
*/ */
@ApiModelProperty("群活码ID")
private Long groupCodeId; private Long groupCodeId;
/** /**
* 客户添加时无需经过确认自动成为好友:1:是;0:否 * 客户添加时无需经过确认自动成为好友:1:是;0:否
*/ */
@ApiModelProperty("客户添加时无需经过确认自动成为好友:1:是;0:否")
private Boolean isJoinConfirmFriends; private Boolean isJoinConfirmFriends;
/** /**
* 二维码链接 * 二维码链接
*/ */
@ApiModelProperty("二维码链接")
private String qrCode; private String qrCode;
/** /**
* 素材的id * 素材的id
*/ */
@ApiModelProperty("素材的id")
private Long mediaId; private Long mediaId;
} }
...@@ -6,6 +6,7 @@ import com.linkwechat.wecom.domain.WeEmpleCodeTag; ...@@ -6,6 +6,7 @@ import com.linkwechat.wecom.domain.WeEmpleCodeTag;
import com.linkwechat.wecom.domain.WeEmpleCodeUseScop; import com.linkwechat.wecom.domain.WeEmpleCodeUseScop;
import com.linkwechat.wecom.domain.WeGroupCodeActual; import com.linkwechat.wecom.domain.WeGroupCodeActual;
import com.linkwechat.wecom.domain.WeMaterial; import com.linkwechat.wecom.domain.WeMaterial;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -16,83 +17,97 @@ import java.util.List; ...@@ -16,83 +17,97 @@ import java.util.List;
/** /**
* 社区运营 新客自动拉群 * 社区运营 新客自动拉群
*/ */
@ApiModel
@Data @Data
public class WeCommunityNewGroupVo { public class WeCommunityNewGroupVo {
/** /**
*主键ID *主键ID
*/ */
@ApiModelProperty("主键ID")
private Long newGroupId; private Long newGroupId;
/** /**
* 员工活码名称 * 员工活码名称
*/ */
@ApiModelProperty("员工活码名称")
private String empleCodeName; private String empleCodeName;
/** /**
* 活动场景 * 活动场景
*/ */
@ApiModelProperty("活动场景")
private String activityScene; private String activityScene;
/** /**
* 欢迎语 * 欢迎语
*/ */
@ApiModelProperty("欢迎语")
private String welcomeMsg; private String welcomeMsg;
/** /**
* 新增联系方式的配置id * 新增联系方式的配置id
*/ */
@ApiModelProperty("新增联系方式的配置id")
private String configId; private String configId;
/** /**
* 二维码链接 * 二维码链接
*/ */
@ApiModelProperty("二维码链接")
private String qrCode; private String qrCode;
/** /**
* 客户添加时无需经过确认自动成为好友:1:是;0:否 * 客户添加时无需经过确认自动成为好友:1:是;0:否
*/ */
@ApiModelProperty("客户添加时无需经过确认自动成为好友:1:是;0:否")
private Boolean isJoinConfirmFriends; private Boolean isJoinConfirmFriends;
/** /**
* 添加好友数 * 添加好友数
*/ */
@ApiModelProperty("添加好友数")
private Integer joinFriendNums; private Integer joinFriendNums;
@NotEmpty(message = "员工信息不能为空") @NotEmpty(message = "员工信息不能为空")
/** 使用员工 */ /** 使用员工 */
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("使用员工")
private List<WeEmpleCodeUseScop> weEmpleCodeUseScops; private List<WeEmpleCodeUseScop> weEmpleCodeUseScops;
/** /**
* 扫码标签 * 扫码标签
*/ */
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("扫码标签")
private List<WeEmpleCodeTag> weEmpleCodeTags; private List<WeEmpleCodeTag> weEmpleCodeTags;
/** /**
* 扫码标签 * 素材
*/ */
@ApiModelProperty("素材")
@TableField(exist = false) @TableField(exist = false)
private WeMaterial weMaterial; private WeMaterial weMaterial;
/** /**
* 素材的id * 素材的id
*/ */
@ApiModelProperty("素材的id")
private Long mediaId; private Long mediaId;
/** /**
* 实际群聊 * 实际群聊
*/ */
@ApiModelProperty("实际群聊")
private List<WeGroupCodeActual> weGroupUserScops; private List<WeGroupCodeActual> weGroupUserScops;
/** 创建者 */ /** 创建者 */
@ApiModelProperty(hidden = true) @ApiModelProperty(value = "创建者",hidden = true)
private String createBy; private String createBy;
/** 创建时间 */ /** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(hidden = true) @ApiModelProperty(value = "创建时间",hidden = true)
private Date createTime=new Date(); private Date createTime=new Date();
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!