Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
f11adc48
Commit
f11adc48
authored
Aug 12, 2020
by
桂前礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1003400、1003401] 资讯及网课可展示的数量、点击按钮查看更多
parent
ba02a19b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
21 deletions
+25
-21
RightsSettingBiz.java
...a/com/pcloud/book/rightsSetting/biz/RightsSettingBiz.java
+1
-1
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+0
-0
RightsSettingTitle.java
.../pcloud/book/rightsSetting/entity/RightsSettingTitle.java
+7
-1
RightsSettingFacede.java
...pcloud/book/rightsSetting/facade/RightsSettingFacede.java
+17
-19
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/RightsSettingBiz.java
View file @
f11adc48
...
@@ -99,7 +99,7 @@ public interface RightsSettingBiz {
...
@@ -99,7 +99,7 @@ public interface RightsSettingBiz {
* @Param [rightsSettingId, wechatUserId, type]
* @Param [rightsSettingId, wechatUserId, type]
* @return com.pcloud.book.rightsSetting.entity.RightsSetting
* @return com.pcloud.book.rightsSetting.entity.RightsSetting
**/
**/
RightsSetting
getRightsSettingRightsNowItemsByType
(
Long
rightsSettingId
,
Long
wechatUserId
,
Integer
type
,
Long
adviserId
,
Long
bookId
,
Long
channelId
,
Integer
readType
);
RightsSetting
getRightsSettingRightsNowItemsByType
(
Long
rightsSettingId
,
Long
wechatUserId
,
Integer
type
,
Long
adviserId
,
Long
bookId
,
Long
channelId
,
Integer
readType
,
Integer
currentPage
,
Integer
numPerPage
);
RightsSetting
getRightsSettingGiftCoupons
(
Long
rightsSettingId
,
Long
wechatUserId
,
Integer
readType
);
RightsSetting
getRightsSettingGiftCoupons
(
Long
rightsSettingId
,
Long
wechatUserId
,
Integer
readType
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
f11adc48
This diff is collapsed.
Click to expand it.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/entity/RightsSettingTitle.java
View file @
f11adc48
package
com
.
pcloud
.
book
.
rightsSetting
.
entity
;
package
com
.
pcloud
.
book
.
rightsSetting
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.pcloud.common.page.PageBeanNew
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
@Data
@Data
public
class
RightsSettingTitle
implements
Serializable
{
public
class
RightsSettingTitle
implements
Serializable
{
...
@@ -36,6 +37,11 @@ public class RightsSettingTitle implements Serializable {
...
@@ -36,6 +37,11 @@ public class RightsSettingTitle implements Serializable {
private
String
serveType
;
private
String
serveType
;
/**
/**
* 分页
*/
private
PageBeanNew
<
RightsNowItem
>
rightsSettingItemList4Page
;
/**
* 列表
* 列表
*/
*/
private
List
<
RightsNowItem
>
rightsSettingItemList
;
private
List
<
RightsNowItem
>
rightsSettingItemList
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/facade/RightsSettingFacede.java
View file @
f11adc48
package
com
.
pcloud
.
book
.
rightsSetting
.
facade
;
package
com
.
pcloud
.
book
.
rightsSetting
.
facade
;
import
com.pcloud.book.applet.vo.AppletNewsShowStateVO
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.rightsSetting.biz.RightsSettingBiz
;
import
com.pcloud.book.rightsSetting.biz.RightsSettingBiz
;
import
com.pcloud.book.rightsSetting.dto.RightsSettingDto
;
import
com.pcloud.book.rightsSetting.dto.RightsSettingDto
;
...
@@ -16,8 +15,9 @@ import com.pcloud.common.utils.ListUtils;
...
@@ -16,8 +15,9 @@ import com.pcloud.common.utils.ListUtils;
import
com.pcloud.common.utils.SessionUtil
;
import
com.pcloud.common.utils.SessionUtil
;
import
com.pcloud.common.utils.cookie.Cookie
;
import
com.pcloud.common.utils.cookie.Cookie
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtil
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
io.swagger.annotations.ApiParam
;
import
lombok.SneakyThrows
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.CookieValue
;
import
org.springframework.web.bind.annotation.CookieValue
;
...
@@ -29,13 +29,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -29,13 +29,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.Min
;
import
java.util.List
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
lombok.SneakyThrows
;
@RequestMapping
(
"rightsSetting"
)
@RequestMapping
(
"rightsSetting"
)
@RestController
(
"rightsSettingFacede"
)
@RestController
(
"rightsSettingFacede"
)
...
@@ -167,17 +162,20 @@ public class RightsSettingFacede {
...
@@ -167,17 +162,20 @@ public class RightsSettingFacede {
@SneakyThrows
@SneakyThrows
@ApiOperation
(
"根据权益id和类型获取即享权益项"
)
@ApiOperation
(
"根据权益id和类型获取即享权益项"
)
@GetMapping
(
"getRightsSettingRightsNowItemsByType"
)
@GetMapping
(
"getRightsSettingRightsNowItemsByType"
)
public
ResponseDto
<
RightsSetting
>
getRightsSettingRightsNowItemsByType
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
public
ResponseDto
<
RightsSetting
>
getRightsSettingRightsNowItemsByType
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
@RequestParam
(
"rightsSettingId"
)
@Min
(
value
=
1
,
@RequestParam
(
"rightsSettingId"
)
@Min
(
value
=
1
,
message
=
"权益id不能小于1"
)
Long
rightsSettingId
,
message
=
"权益id不能小于1"
)
Long
rightsSettingId
,
@RequestParam
(
"rightsSettingType"
)
@Min
(
value
=
1
,
@RequestParam
(
"rightsSettingType"
)
@Min
(
value
=
1
,
message
=
"权益类型不能小于1"
)
Integer
rightsSettingType
,
message
=
"权益类型不能小于1"
)
Integer
rightsSettingType
,
@RequestParam
(
value
=
"adviserId"
,
required
=
false
)
Long
adviserId
,
@RequestParam
(
value
=
"adviserId"
,
required
=
false
)
Long
adviserId
,
@RequestParam
(
value
=
"bookId"
,
required
=
false
)
Long
bookId
,
@RequestParam
(
value
=
"bookId"
,
required
=
false
)
Long
bookId
,
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
,
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
,
@RequestParam
(
value
=
"readType"
,
required
=
false
)
@ApiParam
(
"阅读方式1轻松2高效3深度"
)
Integer
readType
)
{
@RequestParam
(
value
=
"readType"
,
required
=
false
)
@ApiParam
(
"阅读方式1轻松2高效3深度"
)
Integer
readType
,
@RequestParam
(
value
=
"numPerPage"
,
required
=
false
)
Integer
numPerPage
,
@RequestParam
(
value
=
"currentPage"
,
required
=
false
)
Integer
currentPage
)
{
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
return
new
ResponseDto
<>(
rightsSettingBiz
.
getRightsSettingRightsNowItemsByType
(
rightsSettingId
,
wechatUserId
,
rightsSettingType
,
adviserId
,
bookId
,
channelId
,
readTyp
e
));
return
new
ResponseDto
<>(
rightsSettingBiz
.
getRightsSettingRightsNowItemsByType
(
rightsSettingId
,
wechatUserId
,
rightsSettingType
,
adviserId
,
bookId
,
channelId
,
readType
,
currentPage
,
numPerPag
e
));
}
}
@ApiOperation
(
"根据权益id获取即享权益项专享礼包"
)
@ApiOperation
(
"根据权益id获取即享权益项专享礼包"
)
...
...
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