package com.sptg.estate.api.feigns;

import com.sptg.estate.api.entity.MemberLoginStatus;
import com.sptg.estate.api.feigns.fallback.MemberLoginFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value= "smart-house-estate",fallbackFactory= MemberLoginFeignFallbackFactory.class)
public interface MemberLoginStatusFeign {

    /**
     * 功能描述: 查询会员登录信息
     * @param memberLoginStatus
     * @return
     *
     *
     */
    @PostMapping(value = "/checkMemberLoginStatus")
    MemberLoginStatus checkMemberLoginStatus(@RequestBody MemberLoginStatus memberLoginStatus);

    /**
     * 功能描述: 查询会员登录信息
     * @param memberLoginStatus
     * @return
     *
     *
     */
    @PostMapping(value = "/addMemberLoginStatus")
    Boolean addMemberLoginStatus(@RequestBody MemberLoginStatus memberLoginStatus);

    /**
     * 功能描述: 查询会员登录信息
     * @param memberLoginStatus
     * @return
     *
     *
     */
    @PostMapping(value = "/updateMemberLoginStatus")
    Boolean updateMemberLoginStatus(@RequestBody MemberLoginStatus memberLoginStatus);
}
