迁移版本
This commit is contained in:
@@ -27,4 +27,9 @@ export const toCartApi = async (listId, productId) => {
|
||||
product_id: productId
|
||||
})
|
||||
}
|
||||
|
||||
export const submitHighIntentApi = async (list_id, intent_remark = '') => {
|
||||
return await post(`${prefix}submit-high-intent`, { list_id, intent_remark })
|
||||
}
|
||||
export const savePreferSkuApi = async (params) => {
|
||||
return await post(`${prefix}save-prefer-sku`, params)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import {get} from '../request';
|
||||
import {get, post} from '../request';
|
||||
|
||||
const prefix = 'product/'
|
||||
|
||||
@@ -12,3 +12,6 @@ export const getCategoryListByPidApi = async (pid = 0) => {
|
||||
export const getProductDetailApi = async (id = 0, p_user_id = 0) => {
|
||||
return await get(`${prefix}detail`, {id, p_user_id})
|
||||
}
|
||||
export const productViewApi = async (id) => {
|
||||
return await post(`${prefix}view`, { id })
|
||||
}
|
||||
|
||||
@@ -15,3 +15,6 @@ export const updateNickNameApi = async (nick_name) => {
|
||||
nick_name
|
||||
})
|
||||
}
|
||||
export const updateProfileApi = async (nick_name, avatar) => {
|
||||
return await post(`${prefix}update-profile`, { nick_name, avatar })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user