huliguo
3 天以前 e7c5c8c6768e018b17a766d7481f13300b7cd5a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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("添加类型失败");
    }
*/
 
 
    /**
     * 新增用户
     */
 
    /**
     * 修改用户
     */
 
 
    /**
     * 删除用户
     */
 
    /**
     * 分页查询
     */
 
}