package cn.iocoder.yudao.module.staff.controller.app;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.staff.service.ApiAppLoginService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 员工APP端登录通用接口
 * @author vinjor-M
 * @date 14:04 2024/10/16
**/
@RestController
@RequestMapping("/company/staff")
@Tag(name = "员工APP端登录通用接口")
public class ApiAppLoginController {
    @Autowired
    private ApiAppLoginService apiAppLoginService;

    /**
     * 登录获取验证码
     * @author vinjor-M
     * @date 14:06 2024/10/16
     * @param phone 手机号
     * @param sysCode 系统标识
     * @return cn.iocoder.yudao.framework.common.pojo.CommonResult
    **/
    @PostMapping("/loginSmsCode")
    public CommonResult<?> loginSmsCode(String phone,String sysCode) {
        return apiAppLoginService.loginSmsCode(phone,sysCode);
    }


}
