对接接口
This commit is contained in:
@ -24,18 +24,37 @@ export interface IUpdateUserInfoParams {
|
||||
}
|
||||
|
||||
export function updateUserInfo(data: IUpdateUserInfoParams) {
|
||||
console.log("🚀 ~ updateUserInfo ~ data:", data)
|
||||
return http.Post('/storeapi/user/updateUser', data)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取流水明细
|
||||
*/
|
||||
export interface IGetUserTransactionDetailsParams {
|
||||
page: number
|
||||
size: number
|
||||
end_time: string
|
||||
}
|
||||
|
||||
export function getUserTransactionDetails(data: IGetUserTransactionDetailsParams) {
|
||||
return http.Post<IOrderListResult>('/storeapi/user/balanceLogList', data)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取流水明细详情(账单明细)
|
||||
*/
|
||||
export function getUserTransactionDetailsInfo(id: number) {
|
||||
return http.Post<any>('/storeapi/user/balanceLogDetails', { id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取验证码
|
||||
*/
|
||||
export interface IGetVerificationCodeParams {
|
||||
export interface IGetStoreVerificationCodeParams {
|
||||
mobile: string
|
||||
scene: number
|
||||
scene: string
|
||||
}
|
||||
|
||||
export function getVerificationCode(data: IGetVerificationCodeParams) {
|
||||
export function getVerificationCode(data: IGetStoreVerificationCodeParams) {
|
||||
return http.Post('/storeapi/sms/sendCode', data)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user