feat(用户信息api接口文件): 新增获取区域信息接口
This commit is contained in:
parent
763ecf401a
commit
66c78a3ea9
@ -83,6 +83,18 @@ export function getMemberProfile() {
|
|||||||
return get('/team/member/profile')
|
return get('/team/member/profile')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取用户所在的区域信息
|
||||||
|
export const getRegionByUserId = async (userId) => {
|
||||||
|
try {
|
||||||
|
const response = await get(`/region-config/client/getRegionByUserId?userId=${userId}`)
|
||||||
|
return response
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to fetch get region of userId:', error)
|
||||||
|
console.error('error:' + error.response.errorMsg)
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验金币销售商权限
|
* 校验金币销售商权限
|
||||||
* @returns {Promise} 返回是否具有销售商权限
|
* @returns {Promise} 返回是否具有销售商权限
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user