Request
{
memberId : #멤버분 아이디?, String
loginSuccess: true, boolean
}
Response
post
url: /api/users/join
response: 성공 여부
get
url: /api/users/logout
response: 성공 여부
get
url: /api/users/auth
response: {
isAdmin, // 관리자 유무 ex) role === 0 ? 유저 : 관리자
isAuth, // 로그인 유무
email, // 이메일
name, // 이름
role, // 관리자, 사용자 표시 ex) 관리자 1, 유저 0
cart, // 장바구니 -> 필요없어보여서 일단 뺌
history // 구매 내역 -> 필요없어보여서 일단 뺌
}
post
url: /api/customer/changeToAdmin
response: 성공 여부