init6
This commit is contained in:
19
shared/types/user.ts
Normal file
19
shared/types/user.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* 用户相关类型定义
|
||||
* User-related type definitions
|
||||
*/
|
||||
|
||||
import { BaseEntity } from './base'
|
||||
|
||||
/**
|
||||
* 用户实体接口
|
||||
* User entity interface
|
||||
*/
|
||||
export interface User extends BaseEntity {
|
||||
name: string
|
||||
email: string
|
||||
age: number | null
|
||||
}
|
||||
|
||||
// 注意:CreateUserInput 和 UpdateUserInput 类型现在在 ~/shared/schemas/user.ts 中定义
|
||||
// 请从 ~/shared/schemas/user 导入这些类型
|
||||
Reference in New Issue
Block a user