package com.jwipc.sys.constant;

import com.dtflys.forest.annotation.Post;
import com.jwipc.api.interceptor.OAInterceptor;
import com.jwipc.log.annotation.ApiOperateLog;
import com.jwipc.log.constant.ApiDirection;
import com.jwipc.log.constant.ThirdSysType;
import com.jwipc.sys.dto.OaSingleLoginRestDTO;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
public interface SysOaClient {
    @Post(value = "#{sys.oa-host}/api/sys-authentication/loginService/getLoginSessionId?loginName={0}",
            interceptor = OAInterceptor.class)
    @ApiOperateLog(code = "OaSingleLogin", name = "oa单点登录", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.OA)
    OaSingleLoginRestDTO singleLogin(String loginName);
}
