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