修复一些问题,个人账号功能完善,注册功能完善,收藏,购物车功能完善,初版基本完成,投入测试
This commit is contained in:
@@ -9,5 +9,11 @@ export const fileApi = {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getSignedUrl: (fileId: number, expiryTimeInMinutes?: number) => {
|
||||
return api.get<string>(`/file/get-signed-url/${fileId}`, {
|
||||
params: { expiryTimeInMinutes }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import axios, { AxiosError } from 'axios'
|
||||
import { authApi } from './auth'
|
||||
import { wishlistApi } from './wishlist'
|
||||
import router from '../router'
|
||||
import { message } from 'ant-design-vue'
|
||||
|
||||
@@ -221,4 +222,6 @@ export const fileApi = {
|
||||
}
|
||||
}
|
||||
|
||||
export { wishlistApi }
|
||||
|
||||
export default api
|
||||
|
||||
@@ -3,17 +3,35 @@ import api from './index'
|
||||
export interface ProductVO {
|
||||
id: number
|
||||
shopId: number | null
|
||||
shopName?: string
|
||||
name: string
|
||||
title?: string
|
||||
description: string
|
||||
image: string
|
||||
imageFileIds?: string
|
||||
imageUrls?: string[]
|
||||
price: number
|
||||
estimatedTime: number
|
||||
approximateDuration?: string
|
||||
category: string
|
||||
tags?: string
|
||||
tagList?: string[]
|
||||
tagInfos?: TagInfo[]
|
||||
status: number
|
||||
likeCount?: number
|
||||
collectCount?: number
|
||||
createTime: string
|
||||
updateTime: string
|
||||
}
|
||||
|
||||
export interface TagInfo {
|
||||
id: number
|
||||
tagName: string
|
||||
textColor?: string
|
||||
bgColor?: string
|
||||
borderColor?: string
|
||||
}
|
||||
|
||||
export interface ListProductsParams {
|
||||
page: number
|
||||
size: number
|
||||
|
||||
@@ -22,6 +22,7 @@ export interface UpdateUserInfoRequest {
|
||||
nickname?: string
|
||||
avatar?: string
|
||||
signature?: string
|
||||
phone?: string
|
||||
}
|
||||
|
||||
export interface ListUsersParams {
|
||||
@@ -87,5 +88,8 @@ export const userApi = {
|
||||
},
|
||||
sendVerificationCode: (data: { phone: string }) => {
|
||||
return api.post('/user/send-verification-code', data)
|
||||
},
|
||||
deactivateAccount: () => {
|
||||
return api.delete('/user/deactivate')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user