添加景区入驻申请流程并对齐 Android
This commit is contained in:
@ -39,6 +39,23 @@ final class OSSUploadService {
|
||||
try await uploadFile(data: data, fileName: fileName, fileType: 2, scenicId: scenicId, moduleType: "bank_card", onProgress: onProgress)
|
||||
}
|
||||
|
||||
/// 上传景区申请图片,对齐 Android `moduleType = scenic_apply`。
|
||||
func uploadScenicApplyImage(
|
||||
data: Data,
|
||||
fileName: String,
|
||||
scenicId: Int,
|
||||
onProgress: @escaping (Int) -> Void
|
||||
) async throws -> String {
|
||||
try await uploadFile(
|
||||
data: data,
|
||||
fileName: fileName,
|
||||
fileType: 2,
|
||||
scenicId: scenicId,
|
||||
moduleType: "scenic_apply",
|
||||
onProgress: onProgress
|
||||
)
|
||||
}
|
||||
|
||||
/// 上传任务素材,对齐 Android `moduleType = task_upload`。
|
||||
func uploadTaskFile(
|
||||
data: Data,
|
||||
@ -145,6 +162,8 @@ enum OSSUploadPolicy {
|
||||
return "bank_card/\(currentDate)/\(scenicId)/\(uploadId)_\(safeName)"
|
||||
case "task_upload":
|
||||
return "task/\(currentDate)/\(scenicId)/\(uploadId)_\(safeName)"
|
||||
case "scenic_apply":
|
||||
return "scenic_apply/\(currentDate)/\(scenicId)/\(uploadId)_\(safeName)"
|
||||
default:
|
||||
return "task/\(currentDate)/\(scenicId)/\(uploadId)_\(safeName)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user