|
@@ -6,7 +6,6 @@ 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;
|
|
|
|
|
@@ -28,8 +27,10 @@ public class ServiceTokenController {
|
|
|
|
|
|
@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);
|
|
|
+ public RespDTO<String> hasPermission(String appkey) {
|
|
|
+ System.out.println(appkey);
|
|
|
+ return RespDTO.onSuc("1111");
|
|
|
+ // return serviceTokenFacade.hasPermission(appkey, secret, productId);
|
|
|
}
|
|
|
|
|
|
}
|