@tplc/business
Version:
21 lines (20 loc) • 423 B
text/typescript
export interface AdvertItem {
adContent: string
advertId: string
closeTime: number
closeType: string
createDate: string
jumpType: number
lastModifyDate: string
pageType: string
type: number
title?: string
weightSort: string
}
/** 获取公告 */
export const getAdvertList = (data: {
/** 1: 文字 2: 图片 */
type: 1 | 2
}) => {
return uni.$lcb.http.post<AdvertItem[]>('/advert/list', data)
}