调试茶艺师订单接口

This commit is contained in:
wangxiaowei
2026-01-03 01:40:12 +08:00
parent 66ee35285d
commit 3a31777431
18 changed files with 717 additions and 344 deletions

View File

@ -1,23 +1,47 @@
import { http } from '@/http/alova'
/**
* 获取茶艺师等级
*/
export function getTeaSpecialistLevels() {
return http.Post<any>('/api/Teamaster/teamasterLevel', null)
}
/**
* 获取茶艺师列表
*/
export interface ITeaSpecialistParams {
level_id: string
page: number
size: number
latitude: number
longitude: number
level: string
search: string
}
export function getTeaSpecialist(data: ITeaSpecialistParams) {
return http.Post('/api/Teamaster/teamasterList', data)
}
/**
* 茶艺师详情
* @param team_user_id 茶艺师用户ID
* @param longitude 经度
* @param latitude 纬度
*/
export interface ITeaSpecialistDetailParams {
team_user_id: number
longitude: number
latitude: number
}
export function getTeaSpecialistDetail(data: ITeaSpecialistDetailParams) {
return http.Post<any>('/api/Teamaster/TeamasterDetails', data)
}
/**
* 茶叶商品列表
*/
export function getTeaProducts() {
return http.Post('/api/Teamaster/LeafList')
}
/**
* 获取茶艺师优惠券
*/
export function getTeaSpecialistCoupons() {
return http.Post<any>('/api/Teamaster/userCoupon')
}