Commit 43a76b3f by danmo

Merge remote-tracking branch 'origin/back_end_dev' into back_end_dev

2 parents 96ea2441 53ff5c62
package com.linkwechat.web.controller.wecom;
import com.linkwechat.common.core.controller.BaseController;
import com.linkwechat.common.core.domain.AjaxResult;
import com.linkwechat.wecom.domain.WeApp;
import com.linkwechat.wecom.service.IWeAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/wecom/weapp")
public class WeAppController extends BaseController {
@Autowired
IWeAppService iWeAppService;
@GetMapping("/list")
public AjaxResult list() {
return AjaxResult.success(
iWeAppService.list()
);
}
@PutMapping("/updateWeApp")
public AjaxResult updateWeApp(@RequestBody WeApp weApp){
iWeAppService.updateById(weApp);
return AjaxResult.success();
}
}
package com.linkwechat.wecom.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linkwechat.common.utils.SnowFlakeUtil;
import lombok.AllArgsConstructor;
......@@ -29,11 +30,40 @@ public class WeApp {
/**应用id**/
private String agentId;
/**应用名称**/
private String agentName;
/**应用密钥**/
private String agentSecret;
/**应用描述**/
private String description;
/**应用图标**/
private String squareLogoUrl;
/**企业应用是否被停用(1:是;0:否)**/
private Integer close;
/**企业应用可信域名**/
private String redirectDomain;
/**企业应用是否打开地理位置上报 0:不上报;1:进入会话上报;**/
private Integer reportLocationFlag;
/**是否上报用户进入应用事件。0:不接收;1:接收**/
private Integer isreportenter;
/**应用主页url**/
private String homeUrl;
/**应用类型(1:自建应用;)**/
private Integer appType;
......@@ -52,6 +82,11 @@ public class WeApp {
private String status;
/**企业应用头像的mediaid,通过素材管理接口上传图片获得mediaid,上传后会自动裁剪成方形和圆形两个头像**/
@TableField(exist = false)
private String logoMediaid;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!