|
|
@@ -14,6 +14,7 @@ import org.apache.shiro.crypto.hash.SimpleHash;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
+import org.springframework.util.Assert;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -527,6 +528,18 @@ public class UserApiController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取昵称
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/nickname", method = RequestMethod.GET)
|
|
|
+ public Result nickname() {
|
|
|
+ User u = userService.selectByPrimaryKey(TokenManager.getUserId());
|
|
|
+ Assert.notNull(u, "用户不存在");
|
|
|
+ return res().data(u.getNickname());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 团体人力资源情况入口
|
|
|
*
|
|
|
* @return
|