import request from '/@/utils/request';

/**
 * 登录api接口集合
 * @method signIn 用户登录
 * @method signOut 用户退出登录
 */
export function useLoginApi() {
	return {
		signIn: (params: object) => {
			return request({
				url: '/api/Account/Login',
				method: 'post',
				data: params,
			});
		},
		signOut: (params: object) => {
			return request({
				url: '/api/Account/Logout',
				method: 'post',
				data: params,
			});
		},

		GetUserInfo: (params: object) => {
			return request({
				url: '/api/Account/MyInfo',
				method: 'get',
				data: params,
			});
		},
	};
}



