|
@@ -149,7 +149,7 @@ export const weixinMiniAppLogin = (phoneCode: string, loginCode: string, state:
|
|
state,
|
|
state,
|
|
})
|
|
})
|
|
export const getMemberUserInfo = () => httpGet<any>('/app-api/member/user/get')
|
|
export const getMemberUserInfo = () => httpGet<any>('/app-api/member/user/get')
|
|
-export const getByDictType = (dictType: string | 'member_channel_source') =>
|
|
+export const getByDictType = (type: string | 'member_channel_source') =>
|
|
httpGet<
|
|
httpGet<
|
|
{
|
|
{
|
|
label: string
|
|
label: string
|
|
@@ -157,7 +157,7 @@ export const getByDictType = (dictType: string | 'member_channel_source') =>
|
|
dictType: string
|
|
dictType: string
|
|
status: number
|
|
status: number
|
|
}[]
|
|
}[]
|
|
- >('/app-api/member/dict-data/getByDictType', { dictType })
|
|
+ >('/app-api/system/dict-data/type', { type })
|
|
export const createUserAuthInfo = (
|
|
export const createUserAuthInfo = (
|
|
data: Partial<{
|
|
data: Partial<{
|
|
id: number
|
|
id: number
|
|
@@ -174,5 +174,25 @@ export const createUserAuthInfo = (
|
|
remark: string
|
|
remark: string
|
|
}>,
|
|
}>,
|
|
) => httpPost<any>('/app-api/member/user-auth-info/create', data)
|
|
) => httpPost<any>('/app-api/member/user-auth-info/create', data)
|
|
|
|
+export const getCircles = (query) => httpGet<any>('/app-api/member/circle/page', query)
|
|
|
|
+export const createCircle = (
|
|
|
|
+ data: Partial<{
|
|
|
|
+ headUrl: string
|
|
|
|
+ stylistId: string
|
|
|
|
+ stylistName: string
|
|
|
|
+ marketing: string
|
|
|
|
+ circleDesc: string
|
|
|
|
+ tagName: string
|
|
|
|
+ detailsType: string
|
|
|
|
+ detailsUrl: string
|
|
|
|
+ detailsDesc: string
|
|
|
|
+ circleType: string
|
|
|
|
+ spaceType: string
|
|
|
|
+ designStyle: string
|
|
|
|
+ spaceAddr: string
|
|
|
|
+ customerDemand: string
|
|
|
|
+ bannerUrls: string[]
|
|
|
|
+ }>,
|
|
|
|
+) => httpPost<any>('/app-api/member/circle/create', data)
|
|
export const httpGetMock = <T>(data: T) =>
|
|
export const httpGetMock = <T>(data: T) =>
|
|
new Promise<IResData<T>>((resolve) => resolve({ code: 1, msg: '', data } as IResData<T>))
|
|
new Promise<IResData<T>>((resolve) => resolve({ code: 1, msg: '', data } as IResData<T>))
|