Documentation ¶
Index ¶
- type KnowledgeService
- func (knowledgeService *KnowledgeService) CreateKnowledge(knowledge lessondata.Knowledge) (err error)
- func (knowledgeService *KnowledgeService) DeleteKnowledge(knowledge lessondata.Knowledge) (err error)
- func (knowledgeService *KnowledgeService) DeleteKnowledgeByIds(ids request.IdsReq) (err error)
- func (knowledgeService *KnowledgeService) GetKnowledge(id uint) (knowledge lessondata.Knowledge, err error)
- func (knowledgeService *KnowledgeService) GetKnowledgeInfoList(info lessondataReq.KnowledgeSearch) (list []lessondata.Knowledge, total int64, err error)
- func (knowledgeService *KnowledgeService) UpdateKnowledge(knowledge lessondata.Knowledge) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KnowledgeService ¶
type KnowledgeService struct { }
func (*KnowledgeService) CreateKnowledge ¶
func (knowledgeService *KnowledgeService) CreateKnowledge(knowledge lessondata.Knowledge) (err error)
CreateKnowledge 创建Knowledge记录 Author [piexlmax](https://github.com/piexlmax)
func (*KnowledgeService) DeleteKnowledge ¶
func (knowledgeService *KnowledgeService) DeleteKnowledge(knowledge lessondata.Knowledge) (err error)
DeleteKnowledge 删除Knowledge记录 Author [piexlmax](https://github.com/piexlmax)
func (*KnowledgeService) DeleteKnowledgeByIds ¶
func (knowledgeService *KnowledgeService) DeleteKnowledgeByIds(ids request.IdsReq) (err error)
DeleteKnowledgeByIds 批量删除Knowledge记录 Author [piexlmax](https://github.com/piexlmax)
func (*KnowledgeService) GetKnowledge ¶
func (knowledgeService *KnowledgeService) GetKnowledge(id uint) (knowledge lessondata.Knowledge, err error)
GetKnowledge 根据id获取Knowledge记录 Author [piexlmax](https://github.com/piexlmax)
func (*KnowledgeService) GetKnowledgeInfoList ¶
func (knowledgeService *KnowledgeService) GetKnowledgeInfoList(info lessondataReq.KnowledgeSearch) (list []lessondata.Knowledge, total int64, err error)
GetKnowledgeInfoList 分页获取Knowledge记录 Author [piexlmax](https://github.com/piexlmax)
func (*KnowledgeService) UpdateKnowledge ¶
func (knowledgeService *KnowledgeService) UpdateKnowledge(knowledge lessondata.Knowledge) (err error)
UpdateKnowledge 更新Knowledge记录 Author [piexlmax](https://github.com/piexlmax)
Click to show internal directories.
Click to hide internal directories.