package com.sptg.estate.biz.controller;

import com.sptg.estate.api.entity.MemberLoginStatus;
import com.sptg.estate.api.feigns.MemberLoginStatusFeign;
import com.sptg.estate.biz.service.MemberLoginStatusServiceInterface;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class MemberLoginStatusController implements MemberLoginStatusFeign {
    private final MemberLoginStatusServiceInterface memberLoginStatusServiceInterface;

    @Override
    @PostMapping(value = "/checkMemberLoginStatus")
    public MemberLoginStatus checkMemberLoginStatus(@RequestBody MemberLoginStatus memberLoginStatus) {
        return memberLoginStatusServiceInterface.checkMemberLoginStatus(memberLoginStatus);
    }
    @Override
    @PostMapping(value = "/addMemberLoginStatus")
    public Boolean addMemberLoginStatus(@RequestBody MemberLoginStatus memberLoginStatus) {
        return memberLoginStatusServiceInterface.addMemberLoginStatus(memberLoginStatus);
    }
    @Override
    @PostMapping(value = "/updateMemberLoginStatus")
    public Boolean updateMemberLoginStatus(@RequestBody MemberLoginStatus memberLoginStatus) {
        return memberLoginStatusServiceInterface.updateMemberLoginStatus(memberLoginStatus);
    }
}
