| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- // 教室状态枚举
- 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;
-
- /** 股票名称 */
- stock_name: string;
-
- /** 案例名称 */
- name: string;
-
- /** 案例类型 */
- type?: string;
-
- /** 案例描述 */
- description?: string;
-
- /** 交易日期 */
- trade_date: string;
-
- /** 创建时间 */
- created_at: string;
-
- /** 更新时间 */
- updated_at: string;
- }
-
|