|
@@ -5,6 +5,7 @@ import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.github.microservice.auth.client.constant.AuthConstant;
|
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
|
+import com.github.microservice.auth.client.content.ResultState;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.helper.AuthHelper;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
@@ -264,4 +265,19 @@ public class OrderController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ @SneakyThrows
|
|
|
+ @ApiOperation("测试——创建订单")
|
|
|
+ @ResourceAuth(value = AuthConstant.User, type = AuthType.User)
|
|
|
+ @RequestMapping(value = "creat2", method = RequestMethod.POST)
|
|
|
+ public ResultContent creat2(@RequestBody @Valid AddOrderParamModel orderParamModel) {
|
|
|
+ String userId = authHelper.getCurrentUser().getUserId();
|
|
|
+
|
|
|
+ log.info(userId);
|
|
|
+
|
|
|
+ return ResultContent.build(ResultState.Success);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|