同步个人空间配置页面

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
@@ -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(