fengjin
2023-09-14 06c7d2f305b6da77841d32fa5d11e2c2b620f549
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
package com.panzhihua.service_equipment.api;
 
import com.panzhihua.common.model.dtos.equipment.UnionUserDto;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_equipment.model.dos.UnionUser;
import com.panzhihua.service_equipment.service.UnionUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
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;
 
import javax.annotation.Resource;
 
@Slf4j
@RestController
@RequestMapping("/unionUser")
public class UnionUserApi {
 
     @Resource
     private UnionUserService userService;
 
    /**
     * 总工会户外劳登录
     *
     * @param loginUserInfoVO
     * @return 总工会户外劳共用户
     */
    @PostMapping("/login")
    public R<UnionUser> login(@RequestBody  LoginUserInfoVO loginUserInfoVO){
         return  userService.login(loginUserInfoVO);
    }
 
    /**
     * 总工会户外劳工站用户认证
     *
     * @param unionUserDto
     * @return 总工会户外劳共用户
     */
    @PostMapping("/authentication")
    public R authentication(@RequestBody UnionUserDto unionUserDto){
        return  userService.authentication(unionUserDto);
    }
 
}