package com.linghu.controller;
|
|
import com.linghu.model.common.ResponseResult;
|
import com.linghu.model.entity.Type;
|
import com.linghu.model.entity.User;
|
import com.linghu.service.UserService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@RestController
|
@RequestMapping("/user")
|
@Api(value = "账号相关接口", tags = "设置-账号管理")
|
public class UserController {
|
@Autowired
|
private UserService userService;
|
|
/*
|
@PostMapping
|
@ApiOperation(value = "添加类型")
|
public ResponseResult<User> add(@RequestBody User user) {
|
boolean success = typeService.save(type);
|
if (success) {
|
return ResponseResult.success(type);
|
}
|
return ResponseResult.error("添加类型失败");
|
}
|
*/
|
|
|
/**
|
* 新增用户
|
*/
|
|
/**
|
* 修改用户
|
*/
|
|
|
/**
|
* 删除用户
|
*/
|
|
/**
|
* 分页查询
|
*/
|
|
}
|