|
@@ -149,5 +149,30 @@ export const weixinMiniAppLogin = (phoneCode: string, loginCode: string, state:
|
|
|
state,
|
|
|
})
|
|
|
export const getMemberUserInfo = () => httpGet<any>('/app-api/member/user/get')
|
|
|
+export const getByDictType = (dictType: string | 'member_channel_source') =>
|
|
|
+ httpGet<
|
|
|
+ {
|
|
|
+ label: string
|
|
|
+ value: string
|
|
|
+ dictType: string
|
|
|
+ status: number
|
|
|
+ }[]
|
|
|
+ >('/app-api/member/dict-data/getByDictType', { dictType })
|
|
|
+export const createUserAuthInfo = (
|
|
|
+ data: Partial<{
|
|
|
+ id: number
|
|
|
+ userId: number
|
|
|
+ designerName: string
|
|
|
+ gender: number
|
|
|
+ mobile: string
|
|
|
+ channelSource: number
|
|
|
+ referrer: string
|
|
|
+ employer: string
|
|
|
+ spatialExpertiseType: number
|
|
|
+ attachment: string
|
|
|
+ auditStatus: number
|
|
|
+ remark: string
|
|
|
+ }>,
|
|
|
+) => httpPost<any>('/app-api/member/user-auth-info/create', data)
|
|
|
export const httpGetMock = <T>(data: T) =>
|
|
|
new Promise<IResData<T>>((resolve) => resolve({ code: 1, msg: '', data } as IResData<T>))
|