feat: update app workflows and permissions
This commit is contained in:
@ -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)]
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/// 补充证据接口请求体。
|
||||
|
||||
Reference in New Issue
Block a user