package com.dcsoft.system.api;

import com.dcsoft.common.core.constant.SecurityConstants;
import com.dcsoft.common.core.constant.ServiceNameConstants;
import com.dcsoft.common.core.domain.R;
import com.dcsoft.common.core.web.page.TableDatasInfo;
import com.dcsoft.system.api.domain.FaceStudentBody;
import com.dcsoft.system.api.domain.LoginBody;
import com.dcsoft.system.api.domain.SysAuth;
import com.dcsoft.system.api.factory.RemoteLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

@FeignClient(contextId = "remoteAuthApplication", value = ServiceNameConstants.AUTH_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteAuthApplication {

    @PostMapping(value = "/login")
    public R<Map<String, Object>> login(@RequestBody LoginBody form);
}
