Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
47ecadbd
Commit
47ecadbd
authored
Jun 22, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信标签同步
parent
482caf01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
4 deletions
+114
-4
QywxTagCallbackDTO.java
...ava/com/gic/haoban/manage/api/dto/QywxTagCallbackDTO.java
+77
-0
QywxTagApiService.java
.../com/gic/haoban/manage/api/service/QywxTagApiService.java
+21
-0
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+16
-4
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/QywxTagCallbackDTO.java
0 → 100644
View file @
47ecadbd
package
com
.
gic
.
haoban
.
manage
.
api
.
dto
;
import
java.io.Serializable
;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
* 企业微信标签
*
* @author fdh
*/
public
class
QywxTagCallbackDTO
implements
Serializable
{
private
String
suiteId
;
private
String
infoType
;
private
String
authCorpId
;
private
Integer
id
;
private
String
changeType
;
private
String
tagType
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
public
String
getSuiteId
()
{
return
suiteId
;
}
public
void
setSuiteId
(
String
suiteId
)
{
this
.
suiteId
=
suiteId
;
}
public
String
getInfoType
()
{
return
infoType
;
}
public
void
setInfoType
(
String
infoType
)
{
this
.
infoType
=
infoType
;
}
public
String
getAuthCorpId
()
{
return
authCorpId
;
}
public
void
setAuthCorpId
(
String
authCorpId
)
{
this
.
authCorpId
=
authCorpId
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getChangeType
()
{
return
changeType
;
}
public
void
setChangeType
(
String
changeType
)
{
this
.
changeType
=
changeType
;
}
public
String
getTagType
()
{
return
tagType
;
}
public
void
setTagType
(
String
tagType
)
{
this
.
tagType
=
tagType
;
}
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
}
\ No newline at end of file
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/QywxTagApiService.java
View file @
47ecadbd
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
com.gic.haoban.manage.api.dto.QywxTagCallbackDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagInfoDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagItemDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagRelationDTO
;
...
...
@@ -43,5 +44,25 @@ public interface QywxTagApiService {
*/
public
List
<
QywxTagRelationDTO
>
listAllByWxEnterpriseId
(
String
wxEnterpriseId
);
/**
* 新增回调
*
* @param callbackDTO
*/
public
void
addQywxTag
(
QywxTagCallbackDTO
callbackDTO
);
/**
* 删除回调
*
* @param callbackDTO
*/
public
void
delQywxTag
(
QywxTagCallbackDTO
callbackDTO
);
/**
* 修改回调
*
* @param callbackDTO
*/
public
void
editQywxTag
(
QywxTagCallbackDTO
callbackDTO
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
47ecadbd
...
...
@@ -3,10 +3,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.manage.api.dto.QywxTagInfoDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagItemDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagRelationDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.enums.QywxTagRelationTypeEnum
;
import
com.gic.haoban.manage.api.service.QywxTagApiService
;
import
com.gic.haoban.manage.service.config.Config
;
...
...
@@ -192,4 +189,19 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
List
<
TabQywxTagRelation
>
ret
=
qywxTagService
.
listAllQywxRelation
(
wxEnterpriseId
);
return
EntityUtil
.
changeEntityListByJSON
(
QywxTagRelationDTO
.
class
,
ret
);
}
@Override
public
void
addQywxTag
(
QywxTagCallbackDTO
callbackDTO
)
{
logger
.
info
(
"企业微信新增标签回调:{}"
,
JSONObject
.
toJSONString
(
callbackDTO
));
}
@Override
public
void
delQywxTag
(
QywxTagCallbackDTO
callbackDTO
)
{
logger
.
info
(
"企业微信删除标签回调:{}"
,
JSONObject
.
toJSONString
(
callbackDTO
));
}
@Override
public
void
editQywxTag
(
QywxTagCallbackDTO
callbackDTO
)
{
logger
.
info
(
"企业微信修改标签回调:{}"
,
JSONObject
.
toJSONString
(
callbackDTO
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment