You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
731 B
20 lines
731 B
import { http } from '/nerv-lib/saas';
|
|
|
|
enum Api {
|
|
// USER_LOGIN = '/api/community/objs/Login', //用户登录
|
|
// USER_INFO = '/api/community/community/objs/CurrentUser', //获取用户信息
|
|
|
|
USER_LOGIN = 'api/web/objs/Login', //用户登录
|
|
USER_INFO = 'api/web/objs/CurrentUser', //获取用户信息
|
|
USER_RESOURCE = '/api/community/objs/User/Resource', //获取用户资源
|
|
}
|
|
export const userLogin = (data: RoomListModel) => http.post(Api.USER_LOGIN, data);
|
|
export const userInfo = () => http.get(Api.USER_INFO);
|
|
export const userResource = () => http.get(Api.USER_RESOURCE);
|
|
/**
|
|
* @description 用户登录
|
|
* @property `[fatherRegionUuid]` 父级区域唯一标识
|
|
*/
|
|
interface RoomListModel {
|
|
data: string;
|
|
}
|
|
|