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
abf222cf
Commit
abf222cf
authored
Aug 27, 2024
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-hongshu' into 'master'
Feature hongshu See merge request
!2129
parents
a856112d
473fb0c7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
2 deletions
+68
-2
NoticeMessageTypeEnum.java
...om/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
+2
-1
MessageConvertHelper.java
...service/service/content/adaptor/MessageConvertHelper.java
+5
-0
ContentAccountController.java
...nage/web/controller/content/ContentAccountController.java
+5
-0
ContentMaterialShareQO.java
.../haoban/manage/web/qo/content/ContentMaterialShareQO.java
+13
-0
AccountGenerateQrCodeQo.java
...anage/web/qo/content/account/AccountGenerateQrCodeQo.java
+15
-0
AccountScanResultQo.java
...an/manage/web/qo/content/account/AccountScanResultQo.java
+15
-0
ContentAccountInfoVo.java
...n/manage/web/vo/content/account/ContentAccountInfoVo.java
+13
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
View file @
abf222cf
...
...
@@ -95,7 +95,8 @@ public enum NoticeMessageTypeEnum {
CASH_APPLY_OFFLINE_SUCCESS_NOTIFY
(
7003
,
"提现通知"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"cash_apply_offline_success_notify"
,
"/pages/route/index?pageType="
,
"hbapp_withdraw_list"
,
"cashApplyOfflineSuccessNotify"
,
"haobanNotice"
),
AUTHORIZED_LOGIN_NOTIFY
(
8001
,
"账号授权通知"
,
NoticeMessageCategoryTypeEnum
.
AUTHORIZED
.
getType
(),
"authorized_login_notify"
,
"/pages/route/index?pageType="
,
"hbapp_video_auth"
,
"authorizedLoginNotify"
,
"haobanNotice"
);
AUTHORIZED_LOGIN_NOTIFY
(
8001
,
"账号授权通知"
,
NoticeMessageCategoryTypeEnum
.
AUTHORIZED
.
getType
(),
"authorized_login_notify"
,
"/pages/route/index?pageType="
,
"hbapp_video_auth"
,
"authorizedLoginNotify"
,
"haobanNotice"
),
AUTHORIZED_LOGOUT_NOTIFY
(
8002
,
"账号异常退出登录通知"
,
NoticeMessageCategoryTypeEnum
.
AUTHORIZED
.
getType
(),
"authorized_logout_notify"
,
"/pages/route/index?pageType="
,
"hbapp_video_auth"
,
"authorizedLogoutNotify"
,
"haobanNotice"
);
/**
* 消息类型
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/MessageConvertHelper.java
View file @
abf222cf
...
...
@@ -43,6 +43,11 @@ public class MessageConvertHelper {
String
cusp
=
jsonObject
.
getString
(
"cusp"
);
JSONObject
cuspJson
=
JSON
.
parseObject
(
cusp
);
Integer
isPreview
=
cuspJson
.
getInteger
(
"is_preview"
);
if
(
Objects
.
equals
(
isPreview
,
1
))
{
log
.
info
(
"预览数据不处理"
);
return
null
;
}
String
sysp
=
jsonObject
.
getString
(
"sysp"
);
JSONObject
syspJson
=
JSON
.
parseObject
(
sysp
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentAccountController.java
View file @
abf222cf
...
...
@@ -9,6 +9,7 @@ import com.gic.content.api.dto.account.AccountAuthorizeDTO;
import
com.gic.content.api.dto.account.AccountAuthorizeResultDTO
;
import
com.gic.content.api.dto.account.ContentAccountInfoDTO
;
import
com.gic.content.api.enums.ContentAccountQrCodeSourceType
;
import
com.gic.content.api.enums.ContentAccountStatusEnum
;
import
com.gic.content.api.qdto.account.AccountGenerateQrCodeQDTO
;
import
com.gic.content.api.qdto.account.AccountScanQrCodeResultQDTO
;
import
com.gic.content.api.qdto.account.ContentAccountQDTO
;
...
...
@@ -31,6 +32,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -86,6 +88,7 @@ public class ContentAccountController {
contentAccountQDTO
.
setQueryForClerk
(
Boolean
.
TRUE
);
contentAccountQDTO
.
setUserCodes
(
clerkCodes
);
contentAccountQDTO
.
setStoreIds
(
storeIds
);
contentAccountQDTO
.
setBizType
(
null
);
ServiceResponse
<
Page
<
ContentAccountInfoDTO
>>
serviceResponse
=
contentAccountApiService
.
queryAccountList
(
contentAccountQDTO
);
if
(!
serviceResponse
.
isSuccess
()
||
CollectionUtils
.
isEmpty
(
serviceResponse
.
getResult
().
getResult
()))
{
...
...
@@ -94,6 +97,7 @@ public class ContentAccountController {
List
<
ContentAccountInfoVo
>
contentAccountInfoVos
=
serviceResponse
.
getResult
()
.
getResult
()
.
stream
()
.
filter
(
item
->
!
Objects
.
equals
(
item
.
getStatus
(),
ContentAccountStatusEnum
.
UNBOUND
.
getCode
()))
.
map
(
item
->
EntityUtil
.
changeEntityByJSON
(
ContentAccountInfoVo
.
class
,
item
))
.
collect
(
Collectors
.
toList
());
return
RestResponse
.
successResult
(
contentAccountInfoVos
);
...
...
@@ -114,6 +118,7 @@ public class ContentAccountController {
accountGenerateQrCodeQDTO
.
setSourceType
(
ContentAccountQrCodeSourceType
.
HAOBAN
.
getCode
());
accountGenerateQrCodeQDTO
.
setKey
(
accountGenerateQrCodeQo
.
getKey
());
accountGenerateQrCodeQDTO
.
setAccountId
(
accountGenerateQrCodeQo
.
getAccountId
());
accountGenerateQrCodeQDTO
.
setBizType
(
accountGenerateQrCodeQo
.
getBizType
());
ServiceResponse
<
AccountAuthorizeDTO
>
serviceResponse
=
contentAccountApiService
.
generateQrCode
(
accountGenerateQrCodeQDTO
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
"500"
,
"生成二维码异常"
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/content/ContentMaterialShareQO.java
View file @
abf222cf
...
...
@@ -52,6 +52,11 @@ public class ContentMaterialShareQO implements Serializable {
*/
private
String
goodsDetailSource
;
/**
* 是否预览 1是 0否
*/
private
Integer
isPreview
;
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
...
...
@@ -115,4 +120,12 @@ public class ContentMaterialShareQO implements Serializable {
public
void
setGoodsDetailSource
(
String
goodsDetailSource
)
{
this
.
goodsDetailSource
=
goodsDetailSource
;
}
public
Integer
getIsPreview
()
{
return
isPreview
;
}
public
void
setIsPreview
(
Integer
isPreview
)
{
this
.
isPreview
=
isPreview
;
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/content/account/AccountGenerateQrCodeQo.java
View file @
abf222cf
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
content
.
account
;
import
com.gic.content.api.enums.ContentAccountBizTypeEnum
;
import
java.io.Serializable
;
/**
...
...
@@ -30,6 +32,11 @@ public class AccountGenerateQrCodeQo implements Serializable {
*/
private
String
key
;
/**
* 渠道类型 1 视频号 2 小红书
*/
private
Integer
bizType
=
ContentAccountBizTypeEnum
.
WX_VIDEO
.
getCode
();
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
...
...
@@ -61,4 +68,12 @@ public class AccountGenerateQrCodeQo implements Serializable {
public
void
setKey
(
String
key
)
{
this
.
key
=
key
;
}
public
Integer
getBizType
()
{
return
bizType
;
}
public
void
setBizType
(
Integer
bizType
)
{
this
.
bizType
=
bizType
;
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/content/account/AccountScanResultQo.java
View file @
abf222cf
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
content
.
account
;
import
com.gic.content.api.enums.ContentAccountBizTypeEnum
;
import
java.io.Serializable
;
/**
...
...
@@ -27,6 +29,11 @@ public class AccountScanResultQo implements Serializable {
*/
private
String
enterpriseId
;
/**
* 渠道类型 1 视频号 2 小红书
*/
private
Integer
bizType
=
ContentAccountBizTypeEnum
.
WX_VIDEO
.
getCode
();
public
String
getKey
()
{
return
key
;
}
...
...
@@ -50,4 +57,12 @@ public class AccountScanResultQo implements Serializable {
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getBizType
()
{
return
bizType
;
}
public
void
setBizType
(
Integer
bizType
)
{
this
.
bizType
=
bizType
;
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/content/account/ContentAccountInfoVo.java
View file @
abf222cf
...
...
@@ -12,7 +12,10 @@ public class ContentAccountInfoVo implements Serializable {
private
static
final
long
serialVersionUID
=
-
3355601918337775024L
;
/**
* 渠道类型 1 视频号 2 小红书
*/
private
Integer
bizType
;
/**
* 账号名称
*/
...
...
@@ -31,9 +34,18 @@ public class ContentAccountInfoVo implements Serializable {
* 账号授权状态
* 1 授权中
* 2 已过期
* 3 已解绑
*/
private
Integer
status
;
public
Integer
getBizType
()
{
return
bizType
;
}
public
void
setBizType
(
Integer
bizType
)
{
this
.
bizType
=
bizType
;
}
public
String
getAccountName
()
{
return
accountName
;
}
...
...
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