Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1b18ada
authored
Apr 10, 2021
by
1539136324@qq.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增应用相关接口
1 parent
beb1c07e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
0 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeAppController.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeApp.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeAppController.java
0 → 100644
View file @
a1b18ad
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
();
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeApp.java
View file @
a1b18ad
package
com
.
linkwechat
.
wecom
.
domain
;
package
com
.
linkwechat
.
wecom
.
domain
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.linkwechat.common.utils.SnowFlakeUtil
;
import
com.linkwechat.common.utils.SnowFlakeUtil
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -29,11 +30,40 @@ public class WeApp {
...
@@ -29,11 +30,40 @@ public class WeApp {
/**应用id**/
/**应用id**/
private
String
agentId
;
private
String
agentId
;
/**应用名称**/
private
String
agentName
;
/**应用密钥**/
/**应用密钥**/
private
String
agentSecret
;
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:自建应用;)**/
/**应用类型(1:自建应用;)**/
private
Integer
appType
;
private
Integer
appType
;
...
@@ -52,6 +82,11 @@ public class WeApp {
...
@@ -52,6 +82,11 @@ public class WeApp {
private
String
status
;
private
String
status
;
/**企业应用头像的mediaid,通过素材管理接口上传图片获得mediaid,上传后会自动裁剪成方形和圆形两个头像**/
@TableField
(
exist
=
false
)
private
String
logoMediaid
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment