模块化 AppStore 并完善素材管理与个人空间设置。
将会话、权限、位置、收款与排队存储拆分为独立模块,同步更新各 ViewModel 与单元测试,并补充素材管理 UI 与个人空间设置交互。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -65,6 +65,17 @@ final class ProfileAPI {
|
||||
)
|
||||
}
|
||||
|
||||
/// 上传摄影师头像,对齐 Android multipart 头像更新接口。
|
||||
func uploadAvatar(data: Data, fileName: String) async throws {
|
||||
let _: EmptyPayload = try await client.sendMultipart(
|
||||
path: "/api/yf-handset-app/photog/userinfo-update-avatar",
|
||||
fileName: fileName,
|
||||
mimeType: "image/jpeg",
|
||||
data: data,
|
||||
timeoutInterval: 60
|
||||
)
|
||||
}
|
||||
|
||||
/// 拉取当前登录账号可切换的景区账号和门店账号。
|
||||
func switchableAccounts() async throws -> V9AuthResponse {
|
||||
try await client.send(
|
||||
|
||||
Reference in New Issue
Block a user