This commit is contained in:
Sun
2023-11-08 21:53:07 +08:00
commit 211c3071dc
245 changed files with 39293 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
declare namespace AdminUserManage {
interface GetListRequest{
page:number
limit:number
keyWord?:string
}
}
+31
View File
@@ -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
}
}
+8
View File
@@ -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;
}
+6
View File
@@ -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;
}
+27
View File
@@ -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{
}
}
+16
View File
@@ -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{
}
}
+13
View File
@@ -0,0 +1,13 @@
declare namespace Notice{
interface NoticeInfo extends Common.InfoBase{
title:string
content:string
displayType:number
oneRead:number
url:string
isLogin:number
}
}
+12
View File
@@ -0,0 +1,12 @@
declare namespace Openness.open {
interface LoginConfigRegister {
emailSuffix :string // 注册邮箱后缀
openRegister :boolean // 开放注册
}
interface LoginVcodeResponse{
loginCaptcha: boolean
register:LoginConfigRegister
}
}
+47
View File
@@ -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
}
}
+16
View File
@@ -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 {
}
}
+24
View File
@@ -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
}
}