| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package learning
- import (
- "lims_adapter/model"
- "lims_adapter/model/learning/internal"
- )
- // LearningMaterial is the golang structure for table learning_material.
- type LearningMaterial internal.LearningMaterial
- // Fill with you ideas below.
- type LearningMaterialListReq struct {
- Page *model.Page `json:"page"`
- OrderBy *model.OrderBy `json:"orderBy"`
- SkillId int `json:"skillId"`
- Name string `json:"name"`
- }
- type LearningMaterialGetReq struct {
- Id int `json:"id"` // 资料Id
- Name string `json:"name"` // 资料名称
- }
- type LearningMaterialGetRsp struct {
- LearningMaterial
- File []*LearningMaterialFile `json:"file"`
- LearningRecord []*LearningLearningRecord `json:"learningRecord"`
- }
- type LearningMaterialAddReqFile struct {
- Name string `json:"name"` // 文件名
- Url string `json:"url"` // 文件地址
- Size string `json:"size"` // 文件大小
- Extend string `json:"extend"` // 文件扩展名
- }
- type LearningMaterialAddReq struct {
- SkillId int `json:"skillId" v:"required#请输入技能Id"` // 技能 Id
- Name string `json:"name" v:"required#请输入资料名称"` // 资料名称
- Type int `json:"type" v:"required#请输入资料类型 in:1,2#请输入正确的资料类型"` // 资料类型 1 资料 2 视频
- SortNo int `json:"sortNo"` // 排序
- Enable int `json:"enable" v:"in:0,1#请输入正确的启用类型"` // 是否启用
- Content string `json:"content"` // 资料内容
- File []*LearningMaterialAddReqFile `json:"file"` // 附件
- }
- type LearningMaterialUpdateReq struct {
- Id int `json:"id" v:"required#请输入资料Id"` // Id
- SkillId int `json:"skillId"` // 技能 Id
- Name string `json:"name"` // 资料名称
- Type *int `json:"type" v:"in:1,2#请输入正确的资料类型"` // 资料类型 1 资料 2 视频
- SortNo *int `json:"sortNo"` // 排序
- Enable *int `json:"enable" v:"in:0,1#请输入正确的启用类型"` // 是否启用
- Content string `json:"content"` // 资料内容
- File []*LearningMaterialAddReqFile `json:"file"` // 附件
- }
- type LearningMaterialDeleteReq struct {
- Id int `json:"id" v:"required#请输入资料Id"`
- }
|