|
|
@@ -539,192 +539,3 @@ export interface UserMessage {
|
|
|
sender?: User;
|
|
|
}
|
|
|
|
|
|
-// 教室状态枚举
|
|
|
-export enum ClassroomStatus {
|
|
|
- CLOSED = 0, // 关闭
|
|
|
- OPEN = 1 // 开放
|
|
|
-}
|
|
|
-
|
|
|
-// 教室状态中文映射
|
|
|
-export const ClassroomStatusNameMap: Record<ClassroomStatus, string> = {
|
|
|
- [ClassroomStatus.CLOSED]: '关闭',
|
|
|
- [ClassroomStatus.OPEN]: '开放'
|
|
|
-};
|
|
|
-
|
|
|
-// 教室数据接口
|
|
|
-export interface ClassroomData {
|
|
|
- /** 主键ID */
|
|
|
- id: number;
|
|
|
-
|
|
|
- /** 教室号 */
|
|
|
- classroom_no: string;
|
|
|
-
|
|
|
- /** 训练日期 */
|
|
|
- training_date: string;
|
|
|
-
|
|
|
- /** 持股 */
|
|
|
- holding_stock?: string;
|
|
|
-
|
|
|
- /** 持币 */
|
|
|
- holding_cash?: string;
|
|
|
-
|
|
|
- /** 价格 */
|
|
|
- price?: string;
|
|
|
-
|
|
|
- /** 代码 */
|
|
|
- code?: string;
|
|
|
-
|
|
|
- /** 状态 */
|
|
|
- status: ClassroomStatus;
|
|
|
-
|
|
|
- /** 备用字段 */
|
|
|
- spare?: string;
|
|
|
-
|
|
|
- /** 提交用户ID */
|
|
|
- submit_user?: number;
|
|
|
-
|
|
|
- /** 创建时间 */
|
|
|
- created_at: string;
|
|
|
-
|
|
|
- /** 更新时间 */
|
|
|
- updated_at: string;
|
|
|
-}
|
|
|
-
|
|
|
-// 教室数据列表响应
|
|
|
-export interface ClassroomDataListResponse {
|
|
|
- data: ClassroomData[];
|
|
|
- pagination: {
|
|
|
- current: number;
|
|
|
- pageSize: number;
|
|
|
- total: number;
|
|
|
- totalPages: number;
|
|
|
- };
|
|
|
-}
|
|
|
-
|
|
|
-// 日期备注接口
|
|
|
-export interface DateNote {
|
|
|
- /** 主键ID */
|
|
|
- id: number;
|
|
|
-
|
|
|
- /** 股票代码 */
|
|
|
- code: string;
|
|
|
-
|
|
|
- /** 备注日期 */
|
|
|
- note_date: string;
|
|
|
-
|
|
|
- /** 备注内容 */
|
|
|
- note: string;
|
|
|
-
|
|
|
- /** 创建时间 */
|
|
|
- created_at: string;
|
|
|
-
|
|
|
- /** 更新时间 */
|
|
|
- updated_at: string;
|
|
|
-}
|
|
|
-
|
|
|
-// 日期备注列表响应
|
|
|
-export interface DateNoteListResponse {
|
|
|
- data: DateNote[];
|
|
|
- pagination: {
|
|
|
- current: number;
|
|
|
- pageSize: number;
|
|
|
- total: number;
|
|
|
- totalPages: number;
|
|
|
- };
|
|
|
-}
|
|
|
-
|
|
|
-// 提交记录状态枚举
|
|
|
-export enum SubmissionRecordStatus {
|
|
|
- PENDING = 0, // 待处理
|
|
|
- APPROVED = 1, // 已通过
|
|
|
- REJECTED = 2 // 已拒绝
|
|
|
-}
|
|
|
-
|
|
|
-// 提交记录状态中文映射
|
|
|
-export const SubmissionRecordStatusNameMap: Record<SubmissionRecordStatus, string> = {
|
|
|
- [SubmissionRecordStatus.PENDING]: '待处理',
|
|
|
- [SubmissionRecordStatus.APPROVED]: '已通过',
|
|
|
- [SubmissionRecordStatus.REJECTED]: '已拒绝'
|
|
|
-};
|
|
|
-
|
|
|
-// 提交记录实体
|
|
|
-export interface SubmissionRecord {
|
|
|
- /** 主键ID */
|
|
|
- id: number;
|
|
|
-
|
|
|
- /** 用户ID */
|
|
|
- user_id: number;
|
|
|
-
|
|
|
- /** 用户昵称 */
|
|
|
- nickname: string;
|
|
|
-
|
|
|
- /** 成绩 */
|
|
|
- score: number;
|
|
|
-
|
|
|
- /** 代码 */
|
|
|
- code: string;
|
|
|
-
|
|
|
- /** 训练日期 */
|
|
|
- training_date: string;
|
|
|
-
|
|
|
- /** 标记 */
|
|
|
- mark?: string;
|
|
|
-
|
|
|
- /** 状态 */
|
|
|
- status: SubmissionRecordStatus;
|
|
|
-
|
|
|
- /** 创建时间 */
|
|
|
- created_at: string;
|
|
|
-
|
|
|
- /** 更新时间 */
|
|
|
- updated_at: string;
|
|
|
-}
|
|
|
-
|
|
|
-// 提交记录列表响应
|
|
|
-export interface SubmissionRecordListResponse {
|
|
|
- data: SubmissionRecord[];
|
|
|
- pagination: {
|
|
|
- current: number;
|
|
|
- pageSize: number;
|
|
|
- total: number;
|
|
|
- totalPages: number;
|
|
|
- };
|
|
|
-}
|
|
|
-
|
|
|
-// 训练代码实体
|
|
|
-export interface XunlianCode {
|
|
|
- /** 主键ID */
|
|
|
- id: number;
|
|
|
-
|
|
|
- /** 股票代码 */
|
|
|
- code: string;
|
|
|
-
|
|
|
- /** 训练日期 */
|
|
|
- training_date: string;
|
|
|
-
|
|
|
- /** 代码内容 */
|
|
|
- content: string;
|
|
|
-
|
|
|
- /** 提交用户ID */
|
|
|
- user_id: number;
|
|
|
-
|
|
|
- /** 用户昵称 */
|
|
|
- nickname: string;
|
|
|
-
|
|
|
- /** 创建时间 */
|
|
|
- created_at: string;
|
|
|
-
|
|
|
- /** 更新时间 */
|
|
|
- updated_at: string;
|
|
|
-}
|
|
|
-
|
|
|
-// 训练代码列表响应
|
|
|
-export interface XunlianCodeListResponse {
|
|
|
- data: XunlianCode[];
|
|
|
- pagination: {
|
|
|
- current: number;
|
|
|
- pageSize: number;
|
|
|
- total: number;
|
|
|
- totalPages: number;
|
|
|
- };
|
|
|
-}
|