package com.hotwj.platform.resourceManagement.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hotwj.platform.resourceManagement.company.domain.SysUserLoginPort;
import com.hotwj.platform.resourceManagement.company.domain.vo.SysUserLoginPortVo;

import java.util.List;

/**
 * 用户-企业-登录端口关联关系Service接口
 *
 * @author shihongwei
 */
public interface ISysUserLoginPortService extends IService<SysUserLoginPort> {


    /**
     * 以下角色都是空权限，只负责用户能够登录该端口
     */
    // 总部端角色id
    Long HEADQUARTERS_ROLE_ID = 1999302654074122241L;
    // 政府端角色id
    Long GOVERNMENT_ROLE_ID = 1999302783325794305L;
    // 代理商端角色id
    Long AGENT_ROLE_ID = 1999302903249334273L;

    Long BUSINESS_ADMIN_ROLE_ID = 1999311629767241729L;

    Long DRIVER_ROLE_ID = 2010339247320825857L;
//    Long ESCORT_ROLE_ID = 1995523648844247042L;

    // 企业端业务角色 (登录端口)
    String HEADQUARTERS_PORT = "port-headquarters";
    String GOVERNMENT_PORT = "port-government";
    String ENTERPRISE_PORT = "port-company_admin";
    String AGENT_PORT = "port-agent";
    String DRIVER_PORT = "port-driver";

//    String DRIVER_ROLE = "driver";
//    String ESCORT_ROLE = "escort";

    /**
     * 查询用户-企业-登录端口关联关系列表
     *
     * @param userId 用户ID
     * @return 用户-企业-登录端口关联关系集合
     */
    List<SysUserLoginPortVo> selectLoginPortListByPort(Long userId, String port);

    List<String> selectUserLoginPorts(Long userId);
}
