v1.0.0
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
declare namespace AdminUserManage {
|
||||
interface GetListRequest{
|
||||
page:number
|
||||
limit:number
|
||||
keyWord?:string
|
||||
}
|
||||
}
|
||||
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
declare namespace Common {
|
||||
interface ListResponse<T> {
|
||||
list:T
|
||||
count:number
|
||||
}
|
||||
|
||||
interface ListRequest{
|
||||
limit:number
|
||||
page:number
|
||||
keyword?:string
|
||||
}
|
||||
|
||||
interface InfoBase{
|
||||
createTime?:string
|
||||
updateTime?:string
|
||||
id?:number
|
||||
}
|
||||
|
||||
// 请求-带有弹窗验证数据结构
|
||||
interface VerificationRequest{
|
||||
codeId?:string
|
||||
vCode?:string
|
||||
}
|
||||
|
||||
// 响应-带有弹窗验证数据结构
|
||||
interface VerificationResponse{
|
||||
codeId?:string
|
||||
result?:boolean
|
||||
message?:string
|
||||
}
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_GLOB_API_URL: string;
|
||||
readonly VITE_APP_API_BASE_URL: string;
|
||||
readonly VITE_GLOB_OPEN_LONG_REPLY: string;
|
||||
readonly VITE_GLOB_APP_PWA: string;
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
interface Window {
|
||||
$loadingBar?: import('naive-ui').LoadingBarProviderInst;
|
||||
$dialog?: import('naive-ui').DialogProviderInst;
|
||||
$message?: import('naive-ui').MessageProviderInst;
|
||||
$notification?: import('naive-ui').NotificationProviderInst;
|
||||
}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
declare namespace HomePage{
|
||||
|
||||
|
||||
interface State{
|
||||
active:string
|
||||
spaceId:number // 空间的id
|
||||
notesList:Info[]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
declare namespace HomePage.quest{
|
||||
|
||||
interface LoginReqest{
|
||||
username:string
|
||||
password:string
|
||||
vcode?:string
|
||||
}
|
||||
|
||||
interface LoginResponse extends User.Info{
|
||||
token :string
|
||||
}
|
||||
|
||||
interface ResetPasswordByVCodeReqest extends System.Register.SendRegisterVcodeRquest{
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
declare namespace Login{
|
||||
|
||||
interface LoginReqest{
|
||||
username:string
|
||||
password:string
|
||||
vcode?:string
|
||||
}
|
||||
|
||||
interface LoginResponse extends User.Info{
|
||||
token :string
|
||||
}
|
||||
|
||||
interface ResetPasswordByVCodeReqest extends System.Register.SendRegisterVcodeRquest{
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
declare namespace Notice{
|
||||
|
||||
interface NoticeInfo extends Common.InfoBase{
|
||||
title:string
|
||||
content:string
|
||||
displayType:number
|
||||
oneRead:number
|
||||
url:string
|
||||
isLogin:number
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
declare namespace Openness.open {
|
||||
|
||||
interface LoginConfigRegister {
|
||||
emailSuffix :string // 注册邮箱后缀
|
||||
openRegister :boolean // 开放注册
|
||||
}
|
||||
|
||||
interface LoginVcodeResponse{
|
||||
loginCaptcha: boolean
|
||||
register:LoginConfigRegister
|
||||
}
|
||||
}
|
||||
Vendored
+47
@@ -0,0 +1,47 @@
|
||||
declare namespace Panel {
|
||||
|
||||
interface Info extends ItemInfo {
|
||||
|
||||
}
|
||||
|
||||
interface ItemInfo extends Common.InfoBase {
|
||||
icon: ItemIcon |null
|
||||
title: string
|
||||
url: string
|
||||
lanUrl?: string
|
||||
description?: string
|
||||
openMethod: number
|
||||
}
|
||||
|
||||
interface ItemIcon {
|
||||
itemType: number
|
||||
src ?: string
|
||||
text ?: string
|
||||
bgColor ?: string
|
||||
}
|
||||
|
||||
interface State {
|
||||
rightSiderCollapsed: boolean
|
||||
leftSiderCollapsed: boolean
|
||||
networkMode:PanelStateNetworkModeEnum | null
|
||||
panelConfig:panelConfig
|
||||
}
|
||||
|
||||
interface panelConfig{
|
||||
backgroundImageSrc?:string
|
||||
backgroundBlur?:number
|
||||
iconStyle?:PanelPanelConfigStyleEnum
|
||||
iconTextColor?:string
|
||||
logoText?:string
|
||||
logoImageSrc?:string
|
||||
clockShowSecond?:boolean
|
||||
clockColor?:string
|
||||
|
||||
}
|
||||
|
||||
interface userConfig{
|
||||
panel:panelConfig
|
||||
searchEngine?:any
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
declare namespace System.Register{
|
||||
interface SendRegisterVcodeRquest {
|
||||
email ?:string
|
||||
username ?:string
|
||||
password ?:string
|
||||
vcode ?:string
|
||||
emailVCode ?:string
|
||||
verification?:Common.VerificationRequest
|
||||
referralCode?:string
|
||||
}
|
||||
|
||||
interface CommitRquest extends SendRegisterVcodeRquest {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
declare namespace User{
|
||||
|
||||
interface Info{
|
||||
id?:number
|
||||
name ?:string
|
||||
createTime?:string
|
||||
username?:string
|
||||
password?:string
|
||||
headImage?:string
|
||||
status?:number
|
||||
role?:number
|
||||
mail?:string
|
||||
// userId?:string // id代替
|
||||
token?:string
|
||||
isAdmin?:number
|
||||
}
|
||||
|
||||
interface GetReferralCodeResponse{
|
||||
referralCode:string
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user