45 lines
943 B
TypeScript
45 lines
943 B
TypeScript
import { dayjs } from '@/lib/dayjs';
|
|
|
|
import type { CreateForm, LessonCategory } from './type';
|
|
|
|
// import type { CreateForm, LessonCategory } from '../lp_categories/type';
|
|
|
|
export const defaultLessonCategory: LessonCategory = {
|
|
isEmpty: false,
|
|
id: 'default-id',
|
|
cat_name: 'default-category-name',
|
|
cat_image_url: undefined,
|
|
cat_image: undefined,
|
|
pos: 0,
|
|
visible: 'hidden',
|
|
lesson_id: 'default-lesson-id',
|
|
description: 'default-description',
|
|
remarks: 'default-remarks',
|
|
//
|
|
collectionId: '0000000000',
|
|
createdAt: dayjs('2099-01-01').toDate(),
|
|
//
|
|
name: '',
|
|
avatar: '',
|
|
email: '',
|
|
phone: '',
|
|
quota: 0,
|
|
status: 'NA',
|
|
};
|
|
|
|
export const LessonCategoryCreateFormDefault: CreateForm = {
|
|
name: '',
|
|
type: '',
|
|
pos: 1,
|
|
visible: 'visible',
|
|
description: '',
|
|
isActive: true,
|
|
order: 1,
|
|
imageUrl: '',
|
|
};
|
|
|
|
export const emptyLessonCategory: LessonCategory = {
|
|
...defaultLessonCategory,
|
|
isEmpty: true,
|
|
};
|