合并代码
This commit is contained in:
@@ -4,7 +4,7 @@ import type { ApiResponse } from './httpService'
|
||||
// 用户接口
|
||||
export interface PublishBallData {
|
||||
title: string // 球局标题
|
||||
image_list: Array<string>[] // 球局封面
|
||||
image_list: string[] // 球局封面
|
||||
start_time: string,
|
||||
end_time: string
|
||||
play_type: string // 玩法类型
|
||||
@@ -16,15 +16,15 @@ export interface PublishBallData {
|
||||
longitude?: string // 经度
|
||||
court_type?: string // 场地类型 1: 室内 2: 室外
|
||||
court_surface?: string // 场地表面 1: 硬地 2: 红土 3: 草地
|
||||
venue_description_tag?: Array<string>[] // 场地描述标签
|
||||
venue_description_tag?: string[] // 场地描述标签
|
||||
venue_description?: string // 场地描述
|
||||
venue_image_list?: Array<string>[] // 场地图片
|
||||
venue_image_list?: string[] // 场地图片
|
||||
max_players: number // 人数要求
|
||||
current_players: number // 人数要求
|
||||
skill_level_min: number // 水平要求(NTRP)
|
||||
skill_level_max: number // 水平要求(NTRP)
|
||||
description: string // 备注
|
||||
description_tag: Array<string>[] // 备注标签
|
||||
description_tag: string[] // 备注标签
|
||||
is_substitute_supported: boolean // 是否支持替补
|
||||
is_wechat_contact: boolean // 是否需要微信联系
|
||||
wechat_contact?: string // 微信联系
|
||||
@@ -66,6 +66,13 @@ class PublishService {
|
||||
return httpService.post('/venues/list', data, {
|
||||
showLoading: false })
|
||||
}
|
||||
// 畅打发布
|
||||
async create_play_pmoothly(data: PublishBallData): Promise<ApiResponse<Response>> {
|
||||
return httpService.post('/games/create_play_pmoothly', data, {
|
||||
showLoading: true,
|
||||
loadingText: '发布中...'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 导出认证服务实例
|
||||
|
||||
Reference in New Issue
Block a user