feat: 上传封面图
This commit is contained in:
@@ -129,12 +129,48 @@ class PublishService {
|
||||
loadingText: '发布中...'
|
||||
})
|
||||
}
|
||||
async getPictures(req: getPicturesReq): Promise<ApiResponse<getPicturesRes>> {
|
||||
async getHistoryImageList(req: getPicturesReq): Promise<getPicturesRes> {
|
||||
return httpService.post('/gallery/list', req, {
|
||||
showLoading: false,
|
||||
showToast: false,
|
||||
})
|
||||
}
|
||||
async getPresetImageList(req: getPicturesReq): Promise<getPicturesRes> {
|
||||
return httpService.post('/gallery/sys_img_list', req, {
|
||||
showLoading: false,
|
||||
showToast: false,
|
||||
})
|
||||
}
|
||||
async getPictures(req) {
|
||||
const { type, otherReq = {} } = req
|
||||
if (type === 'history') {
|
||||
return this.getHistoryImageList({
|
||||
pageOption: {
|
||||
page: 1,
|
||||
pageSize: 100,
|
||||
},
|
||||
seachOption: {
|
||||
tag: 'cover',
|
||||
resource_type: 'image',
|
||||
dateRange: [],
|
||||
},
|
||||
...otherReq,
|
||||
})
|
||||
} else {
|
||||
return this.getPresetImageList({
|
||||
pageOption: {
|
||||
page: 1,
|
||||
pageSize: 100,
|
||||
},
|
||||
seachOption: {
|
||||
tag: '',
|
||||
resource_type: 'image',
|
||||
dateRange: [],
|
||||
},
|
||||
...otherReq,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 导出认证服务实例
|
||||
|
||||
Reference in New Issue
Block a user