설정 페이지 추가

This commit is contained in:
Yu Sung
2023-08-10 22:05:14 +09:00
parent d06f4d6a36
commit dbeb15ba17
24 changed files with 1368 additions and 4 deletions

View File

@@ -32,4 +32,28 @@ final class UserRepository {
func getMypage() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMypage)
}
func getMemberInfo() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMemberInfo)
}
func updateNotificationSettings(live: Bool? = nil, uploadContent: Bool? = nil, message: Bool? = nil) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.notification(
request: UpdateNotificationSettingRequest(
live: live,
uploadContent: uploadContent,
message: message
)
)
)
}
func logout() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.logout)
}
func logoutAllDevice() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.logoutAllDevice)
}
}