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
7ce721d6
Commit
7ce721d6
authored
Nov 29, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 好办对接微盟
parent
7fa70ca2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
203 additions
and
1 deletions
+203
-1
ContentSettingController.java
...nage/web/controller/content/ContentSettingController.java
+41
-0
ContentSettingVO.java
...om/gic/haoban/manage/web/vo/content/ContentSettingVO.java
+160
-0
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+2
-1
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentSettingController.java
0 → 100644
View file @
7ce721d6
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
content
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.content.api.dto.setting.ContentSettingDTO
;
import
com.gic.content.api.service.ContentSettingApiService
;
import
com.gic.haoban.manage.web.vo.content.ContentSettingVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
/**
* @Author MUSI
* @Date 2023/11/29 10:43 AM
* @Description
* @Version
**/
@RequestMapping
(
path
=
"/content/setting"
)
public
class
ContentSettingController
{
@Autowired
private
ContentSettingApiService
contentSettingApiService
;
/**
* 查询企业内容配置
*
* @param enterpriseId
* @return
*/
@RequestMapping
(
path
=
"/info"
)
public
RestResponse
<
ContentSettingVO
>
queryContentSetting
(
String
enterpriseId
)
{
ServiceResponse
<
ContentSettingDTO
>
serviceResponse
=
contentSettingApiService
.
queryContentSettingInfo
(
enterpriseId
);
if
(!
serviceResponse
.
isSuccess
()
||
serviceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
ContentSettingVO
contentSettingVO
=
EntityUtil
.
changeEntityByJSON
(
ContentSettingVO
.
class
,
serviceResponse
.
getResult
());
return
RestResponse
.
successResult
(
contentSettingVO
);
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/content/ContentSettingVO.java
0 → 100644
View file @
7ce721d6
package
com
.
gic
.
haoban
.
manage
.
web
.
vo
.
content
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
java.io.Serializable
;
/**
* @Author MUSI
* @Date 2023/8/9 3:50 PM
* @Description
* @Version
**/
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ContentSettingVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4050017721050919872L
;
/**
* 内容配置id
*/
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
contentSettingId
;
/**
* 企业ID
*/
private
String
enterpriseId
;
/**
* 是否开启落地页跳转商城首页 1 开启; 0 关闭
*/
private
Integer
mallJumpFlag
;
/**
* 是否开启落地页跳转穿搭社区首页 1 开启; 0 关闭
*/
private
Integer
communityJumpFlag
;
/**
* 页面标题
*/
private
String
showTitle
;
/**
* 评论开关0关闭1开启
*/
private
Integer
commentFlag
;
/**
* 评论引导文案
*/
private
String
commentGuide
;
/**
* 分享文案
*/
private
String
shareCopy
;
/**
* 商城类型
* 1 微商城
* 2 微盟
*/
private
Integer
mallShopType
;
/**
* 微盟商城跳转地址 微盟商城id
*/
private
String
weimoJumpUrl
;
/**
* 微盟图片比例
* 750:750
*/
private
String
weimoPicRatio
;
public
Long
getContentSettingId
()
{
return
contentSettingId
;
}
public
void
setContentSettingId
(
Long
contentSettingId
)
{
this
.
contentSettingId
=
contentSettingId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getMallJumpFlag
()
{
return
mallJumpFlag
;
}
public
void
setMallJumpFlag
(
Integer
mallJumpFlag
)
{
this
.
mallJumpFlag
=
mallJumpFlag
;
}
public
Integer
getCommunityJumpFlag
()
{
return
communityJumpFlag
;
}
public
void
setCommunityJumpFlag
(
Integer
communityJumpFlag
)
{
this
.
communityJumpFlag
=
communityJumpFlag
;
}
public
String
getShowTitle
()
{
return
showTitle
;
}
public
void
setShowTitle
(
String
showTitle
)
{
this
.
showTitle
=
showTitle
;
}
public
Integer
getCommentFlag
()
{
return
commentFlag
;
}
public
void
setCommentFlag
(
Integer
commentFlag
)
{
this
.
commentFlag
=
commentFlag
;
}
public
String
getCommentGuide
()
{
return
commentGuide
;
}
public
void
setCommentGuide
(
String
commentGuide
)
{
this
.
commentGuide
=
commentGuide
;
}
public
String
getShareCopy
()
{
return
shareCopy
;
}
public
void
setShareCopy
(
String
shareCopy
)
{
this
.
shareCopy
=
shareCopy
;
}
public
Integer
getMallShopType
()
{
return
mallShopType
;
}
public
void
setMallShopType
(
Integer
mallShopType
)
{
this
.
mallShopType
=
mallShopType
;
}
public
String
getWeimoJumpUrl
()
{
return
weimoJumpUrl
;
}
public
void
setWeimoJumpUrl
(
String
weimoJumpUrl
)
{
this
.
weimoJumpUrl
=
weimoJumpUrl
;
}
public
String
getWeimoPicRatio
()
{
return
weimoPicRatio
;
}
public
void
setWeimoPicRatio
(
String
weimoPicRatio
)
{
this
.
weimoPicRatio
=
weimoPicRatio
;
}
}
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
7ce721d6
...
...
@@ -160,5 +160,6 @@
<dubbo:reference
interface=
"com.gic.cloudimage.api.service.CloudVideoApiService"
id=
"cloudVideoApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.content.ValueAddedServicesOrderApiService"
id=
"valueAddedServicesOrderApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentSettingApiService"
id=
"contentSettingApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
</beans>
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