|
@@ -2,13 +2,11 @@ package cn.com.qmth.examcloud.core.basic.api.provider;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
|
-import cn.com.qmth.examcloud.commons.web.security.bean.User;
|
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.DemoCloudService;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.request.GetXxxReq;
|
|
@@ -33,19 +31,6 @@ public class DemoCloudServiceProvider extends ControllerSupport implements DemoC
|
|
|
public GetXxxResp getXxx(@RequestBody GetXxxReq req) {
|
|
|
GetXxxResp resp = new GetXxxResp();
|
|
|
resp.setS("test");
|
|
|
- redisClient.set("fuck", resp, 10);
|
|
|
- User user = new User();
|
|
|
- user.setId(110L);
|
|
|
- user.setLoginName("sb");
|
|
|
- user.setToken("abc");
|
|
|
- redisClient.set("100", user, 600);
|
|
|
- return resp;
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "DEMO", notes = "DEMO")
|
|
|
- @PutMapping({"getXxx", "getYYY"})
|
|
|
- public GetXxxResp getXxx2(@RequestBody GetXxxReq req) {
|
|
|
- GetXxxResp resp = redisClient.get("fuck", GetXxxResp.class);
|
|
|
return resp;
|
|
|
}
|
|
|
|