杂务:整理文档并收口 YumiNail 修复
This commit is contained in:
@@ -109,6 +109,13 @@ export interface UserRelationVO {
|
||||
sourceTypeName?: string
|
||||
}
|
||||
|
||||
export interface NailArtistInfoVO {
|
||||
userId?: IdType
|
||||
userType?: number
|
||||
participateProduction?: number | boolean
|
||||
status?: number
|
||||
}
|
||||
|
||||
// 用户端常用接口约定:
|
||||
// - relation 表示当前用户的门店和直属上级归属;
|
||||
// - announcement 只用于首页滚动公告,不进入消息通知历史;
|
||||
@@ -334,6 +341,9 @@ export const userApi = {
|
||||
getMyRelation: async (): Promise<UserRelationVO> => {
|
||||
return await api.get<UserRelationVO>('/user/relation/me') as unknown as UserRelationVO
|
||||
},
|
||||
getNailArtistInfo: async (userId: IdType): Promise<NailArtistInfoVO | null> => {
|
||||
return await api.get<NailArtistInfoVO | null>(`/nail-artist/get/${userId}`) as unknown as NailArtistInfoVO | null
|
||||
},
|
||||
// 注册页输入邀请码时先解析,给用户展示“将归属到谁/哪个店铺”。
|
||||
resolveInviteCode: async (code: string): Promise<InviteCodeVO> => {
|
||||
return await api.get<InviteCodeVO>('/user/invite-code/resolve', { params: { code } }) as unknown as InviteCodeVO
|
||||
|
||||
Reference in New Issue
Block a user