标签功能初版实现

This commit is contained in:
xiaowang
2026-02-24 09:59:22 +08:00
parent c5018b14a5
commit aa0aca2ac0
56 changed files with 2273 additions and 305 deletions
+31
View File
@@ -0,0 +1,31 @@
import api from './index'
export interface ShopVO {
id: number
shopName: string
address: string
phone: string
businessHours: string
description: string
createTime: string
updateTime: string
}
export interface ShopSimpleVO {
id: number
shopName: string
}
export const shopApi = {
getAllShops: () => {
return api.get<ShopVO[]>('/shop/list/all')
},
getShopsSimple: () => {
return api.get<ShopSimpleVO[]>('/shop/list/simple')
},
getShopById: (id: number) => {
return api.get<ShopVO>(`/shop/get/${id}`)
}
}