123456789101112131415161718192021222324252627282930313233343536 |
- package com.diagbot.web;
- import com.diagbot.dto.RespDTO;
- import com.diagbot.facade.ServiceTokenFacade;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- import springfox.documentation.annotations.ApiIgnore;
- /**
- * <p>
- * 服务令牌表 前端控制器
- * </p>
- *
- * @author zhaops
- * @since 2018-09-17
- */
- @RestController
- @RequestMapping("/serviceToken")
- public class ServiceTokenController {
- @Autowired
- ServiceTokenFacade serviceTokenFacade;
- @PostMapping("/hasPermission")
- @ApiIgnore
- public RespDTO<Boolean> hasPermission(@RequestParam("appkey") String appkey, @RequestParam("secret") String secret, @RequestParam("productId") Long productId) {
- return serviceTokenFacade.hasPermission(appkey, secret, productId);
- }
- }
|