知行学院电脑端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
816 B

3 years ago
package com.hxgk.zxxy.controller;
import com.hxgk.zxxy.model.entity.UserDetail;
import com.hxgk.zxxy.service.UserService;
import com.hxgk.zxxy.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@RestController
@RequestMapping("user")
public class UserController {
@Autowired
private UserService userService;
@RequestMapping(value = "detail")
public JsonData getUserDetailFromRedis(@RequestBody Map<String,String> userInfo){
UserDetail userDetail = userService.getUserDetailFromRedis(userInfo);
return JsonData.buildSuccess(userDetail);
}
}