package cn.superdesk.uniorder.openapicall.superdeskuniorder.restapi;

import cn.superdesk.uniorder.common.pagination.PageQueryParam;
import cn.superdesk.uniorder.common.rest.response.R;
import cn.superdesk.uniorder.dto.vo.sys.SysUserVo;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2021/10/26 下午6:32
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/10/26 下午6:32
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
// https://uniorderapi.octlife.cn/
@RetrofitClient(baseUrl = "${test.superdesk.uniorder.octlife.baseUrl}")
public interface OctlifeCallOauthApi {

	/****************************************** 供应商 登陆授权 start ******************************************/

	@POST("web/openapi/superdeskmall/core/oauth/passport")
	Call<R<String>> passport(@Body PageQueryParam param);

	@POST("web/openapi/superdeskmall/core/oauth/passport/decode")
	Call<R<String>> passportDecode(@Body PageQueryParam param);

	@POST("web/openapi/superdeskmall/core/oauth/loginByPassport")
	Call<R<String>> userLoginByPassport(@Body PageQueryParam param);

	@POST("web/openapi/superdeskmall/core/oauth/loginBySupplier")
	Call<R<SysUserVo>> userLoginBySupplier(@Body PageQueryParam param);

	/****************************************** 供应商 登陆授权   end ******************************************/


}
