调整接口
This commit is contained in:
parent
88ac6114ba
commit
7968e41aa8
|
|
@ -14,6 +14,7 @@ public class FrontConfig {
|
|||
"/api/index",
|
||||
"/api/config",
|
||||
"/api/policy",
|
||||
"/api/search",
|
||||
"/api/decorate",
|
||||
"/api/sms/send",
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ import javax.annotation.Resource;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 主页管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api")
|
||||
public class IndexController {
|
||||
|
|
|
|||
|
|
@ -3,9 +3,27 @@ package com.mdd.front.service;
|
|||
import com.mdd.front.vo.user.UserCenterVo;
|
||||
import com.mdd.front.vo.user.UserInfoVo;
|
||||
|
||||
/**
|
||||
* 用户服务接口类
|
||||
*/
|
||||
public interface IUserService {
|
||||
|
||||
/**
|
||||
* 个人中心
|
||||
*
|
||||
* @author fzr
|
||||
* @param userId 用户
|
||||
* @return UserCenterVo
|
||||
*/
|
||||
UserCenterVo center(Integer userId);
|
||||
|
||||
/**
|
||||
* 个人信息
|
||||
*
|
||||
* @author fzr
|
||||
* @param userId 用户ID
|
||||
* @return UserInfoVo
|
||||
*/
|
||||
UserInfoVo info(Integer userId);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,10 +15,12 @@ import com.mdd.front.vo.user.UserCenterVo;
|
|||
import com.mdd.front.vo.user.UserInfoVo;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 用户服务实现类
|
||||
*/
|
||||
@Service
|
||||
public class UserServiceImpl implements IUserService {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue