lxw
2022-07-13 ccb8f32eed98e0fa1a74f6b276f23b6c74f93c53
src/main/java/com/whyc/controller/DocUserController.java
@@ -1,13 +1,14 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.pojo.DocUser;
import com.whyc.service.DocUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@Api(tags = "用户管理")
@@ -21,4 +22,14 @@
    private Response getAllUser(){
        return service.getAllUser();
    }
    @ApiOperation(value = "编辑所有用户信息")
    @PostMapping("updateAllUser")
    private Response updateAllUser(@RequestBody DocUser docUser){
        return service.updateAllUser(docUser);
    }
    @ApiOperation(value = "新添加用户信息")
    @PostMapping("addUser")
    private Response addUser(@RequestBody DocUser docUser){
        return service.addUser(docUser);
    }
}