同步个人空间配置页面

This commit is contained in:
2026-07-08 12:31:03 +08:00
parent 8a65d3c104
commit e88cd4a9a4
6 changed files with 2280 additions and 1 deletions

View File

@ -21,6 +21,50 @@ final class ProfileAPI {
)
}
///
func profileInfo(scenicId: Int) async throws -> PhotographerProfileInfoResponse {
try await client.send(
APIRequest(
method: .get,
path: "/api/yf-handset-app/photog/profile/info",
queryItems: [URLQueryItem(name: "scenic_id", value: String(scenicId))]
)
)
}
///
func updateProfileInfo(_ request: UpdatePhotographerProfileInfoRequest) async throws {
let _: EmptyPayload = try await client.send(
APIRequest(
method: .post,
path: "/api/yf-handset-app/photog/profile/info-update",
body: request
)
)
}
///
func addSchedule(_ request: AddPhotographerScheduleRequest) async throws {
let _: EmptyPayload = try await client.send(
APIRequest(
method: .post,
path: "/api/yf-handset-app/photog/schedule/add",
body: request
)
)
}
///
func deleteSchedule(id: Int) async throws {
let _: EmptyPayload = try await client.send(
APIRequest(
method: .post,
path: "/api/yf-handset-app/photog/schedule/delete",
body: PhotographerScheduleDeleteRequest(id: id)
)
)
}
///
func switchableAccounts() async throws -> V9AuthResponse {
try await client.send(