mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
4.3.2
This commit is contained in:
@@ -121,6 +121,17 @@ public class Example1001_BaseController {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Open(value = "story.system.param.get3")
|
||||
@GetMapping("/get/system/param/v3")
|
||||
public StoryResult systemParam3(HttpServletRequest request) {
|
||||
System.out.println(request.getParameter("app_id"));
|
||||
StoryResult result = new StoryResult();
|
||||
OpenContext openContext = ServiceContext.getCurrentContext().getOpenContext();
|
||||
String token = openContext.getAppAuthToken();
|
||||
result.setName(token);
|
||||
return result;
|
||||
}
|
||||
|
||||
// 参数绑定,少量参数可以这样写,参数多了建议放进类里面
|
||||
@Open(value = "story.oneparam")
|
||||
@GetMapping("/oneParam/v1")
|
||||
|
Reference in New Issue
Block a user