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
f2092b6c
Commit
f2092b6c
authored
Jan 29, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取书本版权保护信息内部接口修改
parent
a38092b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
BookAuthServerDTO.java
...java/com/pcloud/book/copyright/dto/BookAuthServerDTO.java
+0
-1
BookAuthServeService.java
...m/pcloud/book/copyright/service/BookAuthServeService.java
+2
-1
BookAuthServeServiceImpl.java
...book/copyright/service/impl/BookAuthServeServiceImpl.java
+2
-1
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/copyright/dto/BookAuthServerDTO.java
View file @
f2092b6c
...
...
@@ -13,7 +13,6 @@ import java.util.List;
* @date 2018/12/26 15:35
*/
@ApiModel
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
BookAuthServerDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
9178152999605620185L
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/copyright/service/BookAuthServeService.java
View file @
f2092b6c
...
...
@@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
...
@@ -35,7 +36,7 @@ public interface BookAuthServeService {
throws
BizException
;
@ApiOperation
(
value
=
"获取应用是否开启版权保护"
,
httpMethod
=
"POST"
)
@
RequestMapping
(
value
=
"/listIsOpen4ServeIdsAndBookId"
,
method
=
RequestMethod
.
POST
)
@
PostMapping
(
"listIsOpen4ServeIdsAndBookId"
)
ResponseEntity
<
ResponseDto
<
Map
<
String
,
Boolean
>>>
listIsOpen4ServeIdsAndBookId
(
@RequestBody
BookAuthServerDTO
bookAuthServerDTO
)
throws
BizException
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/copyright/service/impl/BookAuthServeServiceImpl.java
View file @
f2092b6c
...
...
@@ -50,7 +50,8 @@ public class BookAuthServeServiceImpl implements BookAuthServeService {
@Override
@PostMapping
(
"listIsOpen4ServeIdsAndBookId"
)
public
ResponseEntity
<
ResponseDto
<
Map
<
String
,
Boolean
>>>
listIsOpen4ServeIdsAndBookId
(
BookAuthServerDTO
bookAuthServerDTO
)
throws
BizException
{
public
ResponseEntity
<
ResponseDto
<
Map
<
String
,
Boolean
>>>
listIsOpen4ServeIdsAndBookId
(
@RequestBody
BookAuthServerDTO
bookAuthServerDTO
)
throws
BizException
{
Map
<
String
,
Boolean
>
isOpen4ServeIds
=
null
;
if
(
bookAuthServerDTO
!=
null
&&
!
bookAuthServerDTO
.
check
())
{
isOpen4ServeIds
=
bookAuthServeBiz
.
listIsOpen4ServeIdsAndBookId
(
bookAuthServerDTO
.
getBookId
(),
bookAuthServerDTO
.
getAdviserId
(),
bookAuthServerDTO
.
getChannelId
(),
bookAuthServerDTO
.
getServeIds
());
...
...
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