ludc
2023-04-12 d7a83f1396425c4e47da9b95f287b26cd5bb3344
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
53
54
55
56
57
58
59
60
package com.vci.ubcs.system.controller;
 
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.vci.ubcs.system.service.IUserPwdstrategyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.tenant.annotation.NonDS;
import com.vci.ubcs.system.vo.UserPwdstrategyVO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
 
import javax.annotation.Resource;
import javax.validation.Valid;
 
/**
 * 用户密码策略关联(UserPwdstrategy)表控制层
 *
 * @author ludc
 * @since 2023-03-20 15:23:24
 */
@NonDS
@ApiIgnore
@AllArgsConstructor
@RestController
@RequestMapping("/user-pwdstrategy")
@Api(value = "用户密码安全策略关联表", tags = "接口")
public class UserPwdstrategyController {
 
    @Resource
    private IUserPwdstrategyService userPwdstrategyService;
 
    /**
     * 新增和修改数据
     *
     * @param userPwdstrategyVO 实体
     * @return 新增结果
     */
    @PutMapping("/insert")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "新增数据", notes = "传入userPwdstrategy")
    public ResponseEntity<Boolean> insert(@Valid @RequestBody UserPwdstrategyVO userPwdstrategyVO) {
        return ResponseEntity.ok(this.userPwdstrategyService.submit(userPwdstrategyVO));
    }
 
    /**
     * 新增和修改数据
     *
     * @param userPwdstrategyVO 实体
     * @return 新增结果
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "修改数据", notes = "传入userPwdstrategy")
    public ResponseEntity<Boolean> update(@Valid @RequestBody UserPwdstrategyVO userPwdstrategyVO) {
        return ResponseEntity.ok(this.userPwdstrategyService.submit(userPwdstrategyVO));
    }
 
}