package com.tykj.dev.device.user.subject.controller;

import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.device.user.subject.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zjm
 * @version 1.0.0
 * @ClassName UserRoleController.java
 * @Description 用户服务层
 * @createTime 2020年07月28日 09:03:00
 */
@RestController
@AutoDocument
@Api(tags = "用户模块", description = "提供用户相关的接口")
public class UserRoleController {
    @Autowired
    UserService userService;

//    @PostMapping(value = "/save")
//    @ApiOperation(value = "用户新增接口", notes = "添加成功返回用户对象")
//    public ResponseEntity saveUser(@RequestBody User user){
//        return ResponseEntity.ok(userService.save(user));
//    }
//    @PostMapping(value = "/delete/{userId}")
//    @ApiOperation(value = "用户删除接口", notes = "删除返回true，false")
//    public ResponseEntity deleteUser( @PathVariable String userId){
//        return ResponseEntity.ok(userService.delete(userId));
//    }
//    @PostMapping(value = "/update")
//    @ApiOperation(value = "用户更新接口", notes = "更新成功返回用户对象")
//    public ResponseEntity updateUser(@RequestBody User user){
//        return ResponseEntity.ok(userService.update(user));
//    }@PostMapping(value = "/findAll")
//    @ApiOperation(value = "所有用户查询接口", notes = "成功返回用户对象集合")
//    public ResponseEntity findAllUser(){
//        return ResponseEntity.ok(userService.findAll());
//    }

}
