// ========================================================================== // 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 LearningMaterialListMyReq struct { SkillId int `json:"skillId" v:"required#请输入技能Id"` // 技能 Id } type LearningMaterialListMy struct { LearningMaterial Learnt bool `json:"learnt"` // 是否已学习 } type LearningMaterialGetReq struct { Id int `json:"id"` // 资料Id Name string `json:"name"` // 资料名称 } type LearningMaterialGetRsp struct { LearningMaterial File []*LearningMaterialFile `json:"file"` LearningRecord []*LearningLearningRecordGetRsp `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|int-in:1,2#请输入资料类型|请输入正确的资料类型"` // 资料类型 1 资料 2 视频 SortNo int `json:"sortNo"` // 排序 Enable int `json:"enable" v:"int-in:0,1#请输入正确的启用类型"` // 是否启用 Content string `json:"content" v:"required#请输入资料内容"` // 资料内容 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:"int-in:1,2#请输入正确的资料类型"` // 资料类型 1 资料 2 视频 SortNo *int `json:"sortNo"` // 排序 Enable *int `json:"enable" v:"int-in:0,1#请输入正确的启用类型"` // 是否启用 Content string `json:"content"` // 资料内容 File []*LearningMaterialAddReqFile `json:"file"` // 附件 } type LearningMaterialDeleteReq struct { Id []int `json:"id" v:"required#请输入资料Id"` }