declare namespace API {
|
interface RequestConfig {
|
[key: string]: any;
|
}
|
|
type AuthPasswordLoginCallback = true;
|
|
interface AuthPasswordLoginCommand {
|
/** 账号 */
|
userName: string;
|
/** 密码 */
|
password: string;
|
type?: EnumUserType;
|
clientType?: EnumClientType;
|
}
|
|
enum EnumClientType {
|
/**电脑网页 */
|
PcWeb = 10,
|
/**微信小程序 */
|
Wxmp = 20,
|
}
|
|
enum EnumMenuType {
|
/**菜单 */
|
Menu = 10,
|
/**页面 */
|
Page = 20,
|
/**模态框 */
|
Modal = 30,
|
/**按钮 */
|
Button = 40,
|
/**字段 */
|
Field = 50,
|
}
|
|
enum EnumMenuVisitLevel {
|
/**所有人 */
|
Everyone = 10,
|
/**需要登录 */
|
NeedLogin = 20,
|
/**需要权限 */
|
NeedPower = 30,
|
}
|
|
enum EnumUserType {
|
/**个人 */
|
Personal = 10,
|
/**企业 */
|
Enterprise = 20,
|
/**运营 */
|
Operation = 100,
|
}
|
|
interface FriendlyResultAuthPasswordLoginCallback {
|
/** 跟踪Id */
|
traceId?: string;
|
/** 状态码 */
|
code?: number;
|
data?: AuthPasswordLoginCallback;
|
/** 执行成功 */
|
success?: boolean;
|
/** 错误信息 */
|
errors?: any;
|
/** 附加数据 */
|
extras?: any;
|
/** 时间戳 */
|
timestamp?: number;
|
}
|
|
interface FriendlyResultGuid {
|
/** 跟踪Id */
|
traceId?: string;
|
/** 状态码 */
|
code?: number;
|
/** 数据 */
|
data?: string;
|
/** 执行成功 */
|
success?: boolean;
|
/** 错误信息 */
|
errors?: any;
|
/** 附加数据 */
|
extras?: any;
|
/** 时间戳 */
|
timestamp?: number;
|
}
|
|
interface FriendlyResultMenuListCallback {
|
/** 跟踪Id */
|
traceId?: string;
|
/** 状态码 */
|
code?: number;
|
data?: MenuListCallback;
|
/** 执行成功 */
|
success?: boolean;
|
/** 错误信息 */
|
errors?: any;
|
/** 附加数据 */
|
extras?: any;
|
/** 时间戳 */
|
timestamp?: number;
|
}
|
|
interface FriendlyResultMenuSubListCallback {
|
/** 跟踪Id */
|
traceId?: string;
|
/** 状态码 */
|
code?: number;
|
data?: MenuSubListCallback;
|
/** 执行成功 */
|
success?: boolean;
|
/** 错误信息 */
|
errors?: any;
|
/** 附加数据 */
|
extras?: any;
|
/** 时间戳 */
|
timestamp?: number;
|
}
|
|
interface MenuListCallback {
|
items?: MenuListCallbackItem[];
|
}
|
|
interface MenuListCallbackItem {
|
/** Id */
|
id?: string;
|
/** 上级Id */
|
parentId?: string;
|
/** 菜单路径 */
|
path?: string;
|
/** 编号 */
|
code?: string;
|
/** 名称 */
|
name?: string;
|
type?: EnumMenuType;
|
visitLevel?: EnumMenuVisitLevel;
|
/** 图标 */
|
icon?: string;
|
/** 链接地址 */
|
url?: string;
|
/** 是否禁用 */
|
isDisabled?: boolean;
|
/** 是否隐藏 */
|
isHidden?: boolean;
|
/** 是否缓存 */
|
isCache?: boolean;
|
/** 排序 */
|
sort?: number;
|
/** 备注 */
|
remark?: string;
|
}
|
|
interface MenuListQuery {
|
/** 上级Id */
|
parentId?: string;
|
/** 关键字 */
|
keywords?: string;
|
}
|
|
interface MenuSaveCommand {
|
/** Id */
|
id?: string;
|
/** 上级Id */
|
parentId?: string;
|
/** 编号 */
|
code: string;
|
/** 名称 */
|
name: string;
|
type?: EnumMenuType;
|
visitLevel?: EnumMenuVisitLevel;
|
/** 图标 */
|
icon?: string;
|
/** 链接地址 */
|
url?: string;
|
/** 分组名称(用于按钮/字段) */
|
group?: string;
|
/** 位置(用于按钮) */
|
location?: string;
|
/** 列宽(用于按钮/列/元素) */
|
width?: string;
|
/** 是否禁用 */
|
isDisabled?: boolean;
|
/** 是否隐藏 */
|
isHidden?: boolean;
|
/** 是否缓存 */
|
isCache?: boolean;
|
/** 排序 */
|
sort?: number;
|
/** 备注 */
|
remark?: string;
|
}
|
|
interface MenuSubListCallback {
|
groups?: MenuSubListCallbackGroup[];
|
}
|
|
interface MenuSubListCallbackGroup {
|
/** 名称 */
|
name?: string;
|
/** 按钮 */
|
buttons?: MenuSubListCallbackItem[];
|
/** 字段 */
|
fields?: MenuSubListCallbackItem[];
|
}
|
|
interface MenuSubListCallbackItem {
|
/** Id */
|
id?: string;
|
/** 上级Id */
|
parentId?: string;
|
/** 菜单路径 */
|
path?: string;
|
/** 编号 */
|
code?: string;
|
/** 名称 */
|
name?: string;
|
type?: EnumMenuType;
|
visitLevel?: EnumMenuVisitLevel;
|
/** 图标 */
|
icon?: string;
|
/** 链接地址 */
|
url?: string;
|
/** 分组名称(用于按钮/字段) */
|
group?: string;
|
/** 位置(用于按钮) */
|
location?: string;
|
/** 列宽(用于按钮/列/元素) */
|
width?: string;
|
/** 是否禁用 */
|
isDisabled?: boolean;
|
/** 是否隐藏 */
|
isHidden?: boolean;
|
/** 是否缓存 */
|
isCache?: boolean;
|
/** 排序 */
|
sort?: number;
|
/** 备注 */
|
remark?: string;
|
}
|
|
interface MenuSubListQuery {
|
/** 上级Id */
|
parentId?: string;
|
}
|
}
|