You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
3.1 KiB
C#

12 months ago
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.WMS.Core.System.Dtos;
12 months ago
using SqlSugar;
12 months ago
namespace DS.WMS.Core.System.Interface;
public interface ICommonService
{
/// <summary>
/// 登录
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult<string> UserLogin(UserLoginModel model);
/// <summary>
/// 获取用户信息
/// </summary>
/// <returns></returns>
DataResult<CurrentUserViewModel> GetUserInfo();
/// <summary>
/// 查询用户拥有的菜单权限
/// </summary>
/// <returns></returns>
DataResult<List<RouteItem>> GetUserPermissionByToken();
11 months ago
11 months ago
/// <summary>
/// 后台端刷新Token
/// </summary>
/// <returns></returns>
DataResult<RefreshTokenRes> UserRefreshToken();
/// <summary>
/// 客户端刷新Token
/// </summary>
/// <returns></returns>
DataResult<RefreshTokenRes> ClientUserRefreshToken();
11 months ago
/// <summary>
/// 客户登录
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult<string> ClientUserLogin(UserLoginModel model);
/// <summary>
/// 获取用户信息-客户
/// </summary>
/// <returns></returns>
DataResult<CurrentUserViewModel> GetClientUserInfo();
11 months ago
/// <summary>
/// 更换机构
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<RefreshTokenRes> ChangeOrg(string id);
11 months ago
/// <summary>
/// 查询客户用户拥有的菜单权限
/// </summary>
/// <returns></returns>
DataResult<List<RouteItem>> GetClientUserPermissionByToken();
12 months ago
/// <summary>
/// 获取服务器信息
/// </summary>
/// <returns></returns>
DataResult<dynamic> GetServerInfo();
/// <summary>
/// 获取角色下拉列表
/// </summary>
/// <returns></returns>
DataResult<List<ApiSelectViewModel>> GetRoleList();
/// <summary>
/// 修改密码
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
11 months ago
public DataResult ChangePassword(ChangePasswordReq model);
12 months ago
/// <summary>
/// 租户注册
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult TenantRegister(TenantRegisterReq req);
12 months ago
/// <summary>
/// 获取数据权限字段
/// </summary>
/// <returns></returns>
DataResult<List<EntityFieldProperty>> GetDataRuleEntityFields(string permissionId);
12 months ago
public ISugarQueryable<T> GetDataRuleFilter<T>();
11 months ago
/// <summary>
/// 获取权限树列表-客户端
/// </summary>
/// <returns></returns>
public DataResult<List<PermissionTreeList>> GetClientPermissionTreeList();
/// <summary>
/// 获取表及视图
/// </summary>
/// <returns></returns>
public DataResult<List<DbTableInfo>> GetTables();
/// <summary>
/// 获取列字段
/// </summary>
/// <param name="tableViewName">表名</param>
/// <returns></returns>
public DataResult<List<DbColumnInfo>> GetColumns(string tableViewName);
12 months ago
}