重命名前端项目目录:web-flowith -> web
- 将前端项目目录从 web-flowith 重命名为 web,使目录结构更简洁 - 保持所有前端代码和配置文件不变 - 统一项目目录命名规范
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
// 登录请求
|
||||
export interface LoginRequest {
|
||||
account: string
|
||||
password: string
|
||||
captcha: string
|
||||
captchaKey?: string
|
||||
remember?: boolean
|
||||
}
|
||||
|
||||
// 注册请求
|
||||
export interface RegisterRequest {
|
||||
account: string
|
||||
password: string
|
||||
confirmPassword: string
|
||||
phone?: string
|
||||
email?: string
|
||||
captcha: string
|
||||
captchaKey?: string
|
||||
}
|
||||
|
||||
// 用户信息
|
||||
export interface UserInfo {
|
||||
id: string
|
||||
account: string
|
||||
nickname?: string
|
||||
avatar?: string
|
||||
phone?: string
|
||||
email?: string
|
||||
createTime: string
|
||||
updateTime: string
|
||||
}
|
||||
|
||||
// 登录响应
|
||||
export interface LoginResponse {
|
||||
accessToken: string
|
||||
refreshToken: string
|
||||
userInfo: UserInfo
|
||||
expiresIn: number
|
||||
loginTime: string
|
||||
}
|
||||
|
||||
// 验证码响应
|
||||
export interface CaptchaResponse {
|
||||
captchaKey: string
|
||||
captchaImage: string
|
||||
expiresIn: number
|
||||
}
|
||||
|
||||
// API响应基础结构
|
||||
export interface ApiResponse<T = any> {
|
||||
success: boolean
|
||||
code: number
|
||||
message: string
|
||||
data: T
|
||||
timestamp: number
|
||||
}
|
||||
|
||||
// 刷新token请求
|
||||
export interface RefreshTokenRequest {
|
||||
refreshToken: string
|
||||
}
|
||||
|
||||
// 修改密码请求
|
||||
export interface ChangePasswordRequest {
|
||||
oldPassword: string
|
||||
newPassword: string
|
||||
confirmPassword: string
|
||||
}
|
||||
|
||||
// 忘记密码请求
|
||||
export interface ForgotPasswordRequest {
|
||||
account: string
|
||||
captcha: string
|
||||
captchaKey: string
|
||||
}
|
||||
|
||||
// 重置密码请求
|
||||
export interface ResetPasswordRequest {
|
||||
token: string
|
||||
newPassword: string
|
||||
confirmPassword: string
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
// 用户相关类型
|
||||
export interface User {
|
||||
id: string
|
||||
username: string
|
||||
email?: string
|
||||
phone?: string
|
||||
avatar?: string
|
||||
nickname?: string
|
||||
createTime: string
|
||||
updateTime: string
|
||||
}
|
||||
|
||||
// 聊天消息类型
|
||||
export interface ChatMessage {
|
||||
id: string
|
||||
content: string
|
||||
type: 'user' | 'ai'
|
||||
timestamp: string
|
||||
sessionId?: string
|
||||
status?: 'sending' | 'sent' | 'delivered' | 'read' | 'failed'
|
||||
error?: string
|
||||
}
|
||||
|
||||
// 聊天会话类型
|
||||
export interface ChatSession {
|
||||
id: string
|
||||
title: string
|
||||
createTime: string
|
||||
updateTime: string
|
||||
messageCount: number
|
||||
}
|
||||
|
||||
// 日记条目类型
|
||||
export interface DiaryEntry {
|
||||
id: string
|
||||
content: string
|
||||
mood?: string
|
||||
tags?: string[]
|
||||
createTime: string
|
||||
updateTime: string
|
||||
aiReply?: string
|
||||
}
|
||||
|
||||
// 个人信息类型
|
||||
export interface PersonalInfo {
|
||||
id: string
|
||||
userId: string
|
||||
age?: number
|
||||
gender?: string
|
||||
location?: string
|
||||
occupation?: string
|
||||
interests: string[]
|
||||
skills: string[]
|
||||
quotes: PersonalQuote[]
|
||||
updateTime: string
|
||||
}
|
||||
|
||||
// 个人语录类型
|
||||
export interface PersonalQuote {
|
||||
id: string
|
||||
content: string
|
||||
createTime: string
|
||||
source?: string
|
||||
}
|
||||
|
||||
// 话题类型
|
||||
export interface Topic {
|
||||
id: string
|
||||
title: string
|
||||
description?: string
|
||||
tags?: string[]
|
||||
createTime: string
|
||||
updateTime: string
|
||||
status: 'active' | 'completed' | 'paused'
|
||||
progress?: number
|
||||
}
|
||||
|
||||
// 生活轨迹事件类型
|
||||
export interface LifeEvent {
|
||||
id: string
|
||||
title: string
|
||||
description?: string
|
||||
date: string
|
||||
type: 'milestone' | 'achievement' | 'memory' | 'goal'
|
||||
importance: 1 | 2 | 3 | 4 | 5
|
||||
tags?: string[]
|
||||
attachments?: string[]
|
||||
}
|
||||
|
||||
// 消息类型
|
||||
export interface Message {
|
||||
id: string
|
||||
title: string
|
||||
content: string
|
||||
type: 'system' | 'notification' | 'reminder'
|
||||
status: 'unread' | 'read'
|
||||
createTime: string
|
||||
actionUrl?: string
|
||||
}
|
||||
|
||||
// API响应类型
|
||||
export interface ApiResponse<T = any> {
|
||||
code: number
|
||||
message: string
|
||||
data: T
|
||||
timestamp: string
|
||||
}
|
||||
|
||||
// 分页参数类型
|
||||
export interface PaginationParams {
|
||||
page: number
|
||||
size: number
|
||||
total?: number
|
||||
}
|
||||
|
||||
// 分页响应类型
|
||||
export interface PaginatedResponse<T> {
|
||||
list: T[]
|
||||
pagination: {
|
||||
page: number
|
||||
size: number
|
||||
total: number
|
||||
totalPages: number
|
||||
}
|
||||
}
|
||||
|
||||
// 导航链接类型
|
||||
export interface NavLink {
|
||||
name: string
|
||||
href: string
|
||||
icon?: string
|
||||
children?: NavLink[]
|
||||
}
|
||||
|
||||
// 功能特性类型
|
||||
export interface Feature {
|
||||
icon: string
|
||||
title: string
|
||||
description: string
|
||||
image: string
|
||||
alt: string
|
||||
}
|
||||
|
||||
// 心情统计类型
|
||||
export interface MoodStats {
|
||||
date: string
|
||||
mood: string
|
||||
score: number
|
||||
}
|
||||
|
||||
// 表单验证规则类型
|
||||
export interface ValidationRule {
|
||||
required?: boolean
|
||||
message?: string
|
||||
pattern?: RegExp
|
||||
min?: number
|
||||
max?: number
|
||||
validator?: (rule: any, value: any) => Promise<void>
|
||||
}
|
||||
|
||||
// 主题配置类型
|
||||
export interface ThemeConfig {
|
||||
primaryColor: string
|
||||
secondaryColor: string
|
||||
backgroundColor: string
|
||||
textColor: string
|
||||
borderRadius: string
|
||||
}
|
||||
|
||||
// 环境配置类型
|
||||
export interface EnvConfig {
|
||||
apiBaseUrl: string
|
||||
uploadUrl: string
|
||||
wsUrl: string
|
||||
isDevelopment: boolean
|
||||
isProduction: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user