Files
front-pc/api/common/types.ts

98 lines
1.8 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//权限请求入参
export interface IGetPermissionsReq {
menuId: string | number
}
//权限请求出参
export interface IPermissions {
createTime: string
embed: string
hidden: string
icon: string
id: string
keepAlive: boolean
menuName: string
menuOrder: number
menuPermission: string
menuRemark: string | null
menuUrl: string
pageUrl: string
parentId: string
}
//列表设置用户习惯查询请求入参
export interface IListsetReq {
/** 用户习惯json字符串 */
habit: string
/** 页面类型,为列表取的唯一标识 */
pageType: string
/** 当前登录用户id */
userId: string
/** 主键ID */
id?: number | string
}
//列表设置用户习惯编辑请求入参
export interface IEditListsetReq {
/** 用户习惯json字符串 */
habit: string
/** 页面类型,为列表取的唯一标识 */
pageType: string
/** 主键ID */
id?: number | string
}
export interface FilePreviewRespVO {
id: number
fileId: number
path: string
name: string
previewUrl: string
type: string
size: number
createTime: string
md5: string
}
/**
* 获得基本信息
*/
export interface AppMemberUserInfoRespVO {
id: number
nickname: string
avatar: string
mobile: string
sex: number
point: number
experience: number
level: {
id: number
name: string
level: number
icon: string
}
brokerageEnabled: boolean
vipLevel: number // 会员等级
}
export interface NotifyMessageRespVO {
id: number
userId: number
userType: string
templateId: number
templateCode: string
templateNickname: string
templateContent: string
templateType: number
templateParams: any
readStatus: boolean
readTime: string
createTime: string
}
export interface fileCreateReqVO {
configId: number
path: string
name: string
url: string
type?: string
size: number
}