@tplc/business
Version:
49 lines (47 loc) • 1.19 kB
text/typescript
export interface HotAddress {
categoryName: string
hint?: string
tips?: string
childAddress: ChildHotAddress[]
}
export interface ChildHotAddress {
addressName: string
addrFlag?: boolean
// 1 是以前的 true ,等于 2 是热门地址,等于 3 是商圈
addressType?: string
area?: string
categoryName?: string
createDate?: string
hotAddressId?: string
icon?: string
lastModifyDate?: string
latitude?: string
keywords?: string
className?: string
cityId: string
areaId: string
provinceId: string
longitude?: string
weightSort?: string
addressInfo?: string
}
export const getHotAddress = () => uni.$lcb.http.post<HotAddress[]>('/address/categoryList', {})
export interface LcbAddress {
addressName: string
addrFlag: boolean
// 1 是以前的 true ,等于 2 是热门地址,等于 3 是商圈
addressType: string
categoryName: string
keywords?: string
cityId: string
areaId: string
provinceId: string
hotAddressId: string
provinceCityName: string
area: string
weightSort: string
}
export const getAddressList = (addressName: string) =>
uni.$lcb.http.post<LcbAddress[]>('/address/list', {
addressName,
})