Commit f2092b6c by 裴大威

获取书本版权保护信息内部接口修改

parent a38092b1
...@@ -13,7 +13,6 @@ import java.util.List; ...@@ -13,7 +13,6 @@ import java.util.List;
* @date 2018/12/26 15:35 * @date 2018/12/26 15:35
*/ */
@ApiModel @ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BookAuthServerDTO implements Serializable { public class BookAuthServerDTO implements Serializable {
private static final long serialVersionUID = 9178152999605620185L; private static final long serialVersionUID = 9178152999605620185L;
......
...@@ -9,6 +9,7 @@ import io.swagger.annotations.Api; ...@@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity; 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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
...@@ -35,7 +36,7 @@ public interface BookAuthServeService { ...@@ -35,7 +36,7 @@ public interface BookAuthServeService {
throws BizException; throws BizException;
@ApiOperation(value = "获取应用是否开启版权保护", httpMethod = "POST") @ApiOperation(value = "获取应用是否开启版权保护", httpMethod = "POST")
@RequestMapping(value = "/listIsOpen4ServeIdsAndBookId", method = RequestMethod.POST) @PostMapping("listIsOpen4ServeIdsAndBookId")
ResponseEntity<ResponseDto<Map<String, Boolean>>> listIsOpen4ServeIdsAndBookId(@RequestBody BookAuthServerDTO bookAuthServerDTO) ResponseEntity<ResponseDto<Map<String, Boolean>>> listIsOpen4ServeIdsAndBookId(@RequestBody BookAuthServerDTO bookAuthServerDTO)
throws BizException; throws BizException;
......
...@@ -50,7 +50,8 @@ public class BookAuthServeServiceImpl implements BookAuthServeService { ...@@ -50,7 +50,8 @@ public class BookAuthServeServiceImpl implements BookAuthServeService {
@Override @Override
@PostMapping("listIsOpen4ServeIdsAndBookId") @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; Map<String, Boolean> isOpen4ServeIds = null;
if (bookAuthServerDTO != null && !bookAuthServerDTO.check()) { if (bookAuthServerDTO != null && !bookAuthServerDTO.check()) {
isOpen4ServeIds = bookAuthServeBiz.listIsOpen4ServeIdsAndBookId(bookAuthServerDTO.getBookId(), bookAuthServerDTO.getAdviserId(), bookAuthServerDTO.getChannelId(), bookAuthServerDTO.getServeIds()); isOpen4ServeIds = bookAuthServeBiz.listIsOpen4ServeIdsAndBookId(bookAuthServerDTO.getBookId(), bookAuthServerDTO.getAdviserId(), bookAuthServerDTO.getChannelId(), bookAuthServerDTO.getServeIds());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment