feat: update app workflows and permissions

This commit is contained in:
2026-07-09 17:34:00 +08:00
parent 43e6133c21
commit 8e356973bd
44 changed files with 2944 additions and 307 deletions
@@ -24,6 +24,8 @@ protocol WildPhotographerReportServing {
func reportList(_ request: WildReportListRequest) async throws -> WildReportListResponse
/// 拉取单条举报详情。
func reportDetail(id: Int) async throws -> WildReportDetailData
/// 拉取举报微信小程序分享配置。
func reportShare(id: String) async throws -> WildReportMiniProgramShareData
}
/// 举报摄影师 API,负责和 `photog/report` 相关接口通讯。
@@ -115,6 +117,17 @@ final class WildPhotographerReportAPI: WildPhotographerReportServing {
)
)
}
/// 拉取举报微信小程序分享配置。
func reportShare(id: String) async throws -> WildReportMiniProgramShareData {
try await client.send(
APIRequest(
method: .get,
path: "/api/yf-handset-app/photog/report/share",
queryItems: [URLQueryItem(name: "id", value: id)]
)
)
}
}
/// 补充证据接口请求体。