Authorization-在最终调用userPurseService操作钱包的入口都加上认证注解
This commit is contained in:
@@ -57,6 +57,7 @@ public class GiftV2Controller extends BaseController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@Authorization
|
||||
@ApiOperation("送礼")
|
||||
@PostMapping("/sendV5")
|
||||
//@CancelUidTag(paramName = {"targetUids"})
|
||||
|
@@ -33,6 +33,7 @@ public class DiamondGiveHistoryController extends BaseController {
|
||||
private DiamondGiveHistoryService diamondGiveHistoryService;
|
||||
|
||||
|
||||
@Authorization
|
||||
@ApiOperation(value = "用户转赠记录", httpMethod = "GET")
|
||||
@GetMapping("/giveRecord")
|
||||
public BusiResult list(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "20") Integer pageSize) {
|
||||
@@ -48,6 +49,7 @@ public class DiamondGiveHistoryController extends BaseController {
|
||||
* @param pageSize
|
||||
* @return
|
||||
*/
|
||||
@Authorization
|
||||
@ApiOperation(value = "用户转赠详情记录", httpMethod = "GET")
|
||||
@GetMapping("/giveRecordVoByType")
|
||||
public BusiResult giveRecordVoByType(Long toUid, @RequestParam(defaultValue = "0") Byte type,
|
||||
@@ -56,6 +58,7 @@ public class DiamondGiveHistoryController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
@Authorization
|
||||
@ApiOperation(value = "用户转赠钻石操作", httpMethod = "POST")
|
||||
@PostMapping("/give")
|
||||
public BusiResult giveDiamond(Long toUid, Long diamondNum, String payPwd) {
|
||||
@@ -64,6 +67,7 @@ public class DiamondGiveHistoryController extends BaseController {
|
||||
return new BusiResult(BusiStatus.SUCCESS);
|
||||
}
|
||||
|
||||
@Authorization
|
||||
@ApiOperation(value = "用户转赠礼物操作", httpMethod = "POST")
|
||||
@PostMapping("/giveGift")
|
||||
public BusiResult giveGift(Long toUid, Integer giftId, Integer giftNum) {
|
||||
@@ -85,6 +89,7 @@ public class DiamondGiveHistoryController extends BaseController {
|
||||
return new BusiResult<>(diamondGiveHistoryService.searchUser(uid, erbanNo));
|
||||
}
|
||||
|
||||
@Authorization
|
||||
@ApiOperation(value = "用户转赠历史", httpMethod = "GET")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "periodType", value = "1-周期,2-上周期", required = true),
|
||||
|
Reference in New Issue
Block a user