Просмотр исходного кода

refactor(api): 更新类型定义和接口返回类型声明

yz 2 недель назад
Родитель
Сommit
053049dc3b
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      src/api/order/image-store-apply.js

+ 7 - 7
src/api/order/image-store-apply.js

@@ -93,7 +93,7 @@ export const getList = (current, size, params) => {
 /**
  * 获取形象店申请详情
  * @param {string} id - 申请ID
- * @returns {Promise<ImageStoreApplyDetailResponse>} 申请详情响应
+ * @returns {Promise<AxiosResponse<ImageStoreApplyRecord>>} 申请详情响应
  */
 export const getDetail = (id) => {
   return request({
@@ -143,11 +143,11 @@ export const update = (row) => {
  * @property {number} code - 响应码
  * @property {boolean} success - 是否成功
  * @property {Object} data - 响应数据
- * @property {ApplyAttachmentRecord[]} data.records - 附件列表
- * @property {number} data.total - 总数
- * @property {number} data.size - 页大小
- * @property {number} data.current - 当前页
- * @property {number} data.pages - 总页数
+ * @property {ApplyAttachmentRecord[]} records - 附件列表
+ * @property {number} total - 总数
+ * @property {number} size - 页大小
+ * @property {number} current - 当前页
+ * @property {number} pages - 总页数
  * @property {string} msg - 响应消息
  */
 
@@ -156,7 +156,7 @@ export const update = (row) => {
  * @param {number} current - 当前页码
  * @param {number} size - 页大小
  * @param {ApplyAttachmentQueryParams} params - 查询参数
- * @returns {Promise<ApplyAttachmentListResponse>} 附件列表响应
+ * @returns {Promise<AxiosResponse<ApplyAttachmentListResponse>>} 附件列表响应
  */
 export const getAttachmentList = (current, size, params) => {
   return request({