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 13178aa4
authored
Sep 04, 2020
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企业ID功能,添加接口文档。
1 parent
9bbf23c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
24 deletions
linkwe-admin/pom.xml
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCorpAccountController.java
linkwe-common/pom.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCorpAccount.java
linkwe-admin/pom.xml
View file @
13178aa
...
...
@@ -30,24 +30,7 @@
<artifactId>
springfox-swagger2
</artifactId>
</dependency>
<!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.5.21
</version>
</dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-models
</artifactId>
<version>
1.5.21
</version>
</dependency>
<!-- swagger2-UI-->
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
</dependency>
<!-- Mysql驱动包 -->
<dependency>
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCorpAccountController.java
View file @
13178aa
...
...
@@ -7,6 +7,8 @@ import com.linkwechat.common.core.page.TableDataInfo;
import
com.linkwechat.common.enums.BusinessType
;
import
com.linkwechat.wecom.domain.WeCorpAccount
;
import
com.linkwechat.wecom.service.IWeCorpAccountService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -19,6 +21,7 @@ import java.util.List;
* @author ruoyi
* @date 2020-08-24
*/
@Api
(
"企业id配置"
)
@RestController
@RequestMapping
(
"/wecom/corp"
)
public
class
WeCorpAccountController
extends
BaseController
...
...
@@ -64,9 +67,10 @@ public class WeCorpAccountController extends BaseController
/**
* 新增企业id相关配置
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:add')"
)
@Log
(
title
=
"企业id相关配置"
,
businessType
=
BusinessType
.
INSERT
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:add')")
//
@Log(title = "企业id相关配置", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation
(
"新增"
)
public
AjaxResult
add
(
@RequestBody
WeCorpAccount
weCorpAccount
)
{
return
toAjax
(
weCorpAccountService
.
insertWeCorpAccount
(
weCorpAccount
));
...
...
linkwe-common/pom.xml
View file @
13178aa
...
...
@@ -131,6 +131,25 @@
</dependency>
<!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.5.21
</version>
</dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-models
</artifactId>
<version>
1.5.21
</version>
</dependency>
<!-- swagger2-UI-->
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
</dependency>
</dependencies>
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCorpAccount.java
View file @
13178aa
package
com
.
linkwechat
.
wecom
.
domain
;
import
com.linkwechat.common.annotation.Excel
;
import
com.linkwechat.common.core.domain.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
...
...
@@ -17,6 +18,7 @@ import lombok.NoArgsConstructor;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
(
"企业id配置相关实体"
)
public
class
WeCorpAccount
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -25,22 +27,23 @@ public class WeCorpAccount extends BaseEntity
private
Long
id
;
/** 企业名称 */
@
Excel
(
name
=
"企业名称"
)
@
ApiModelProperty
(
name
=
"企业名称"
)
private
String
companyName
;
/** 企业ID */
@
Excel
(
name
=
"企业ID"
)
@
ApiModelProperty
(
name
=
"企业ID"
)
private
String
corpId
;
/** 应用的密钥凭证 */
@
Excel
(
name
=
"应用的密钥凭证"
)
@
ApiModelProperty
(
name
=
"应用的密钥凭证"
)
private
String
corpSecret
;
/** 帐号状态(0正常 1停用) */
@
Excel
(
name
=
"帐号状态"
,
readConverterExp
=
"帐号状态(0正常 1停用)"
)
@
ApiModelProperty
(
name
=
"帐号状态(0正常 1停用)"
)
private
String
status
;
/** 删除标志(0代表存在 2代表删除) */
@ApiModelProperty
(
name
=
"删除标志(0代表存在 2代表删除)"
)
private
String
delFlag
;
...
...
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