Documentation ¶
Index ¶
- func ParsePointDto(pointDTOs []PointDto) (videoDTOs []PointVideoDto, workDTOs []PointWorkDto, ...)
- type Account
- type ChannelItem
- type IAttachment
- type PointDocumentDto
- type PointDto
- type PointVideoDto
- type PointWorkDto
- type Session
- type UserEntity
- type WorkInputField
- type XueXiTCourse
- type XueXiTCourseJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePointDto ¶ added in v1.0.9
func ParsePointDto(pointDTOs []PointDto) (videoDTOs []PointVideoDto, workDTOs []PointWorkDto, documentDTOs []PointDocumentDto)
Types ¶
type ChannelItem ¶
type ChannelItem struct { Cfid int `json:"cfid"` Norder int `json:"norder"` CataName string `json:"cataName"` Cataid string `json:"cataid"` Id int `json:"id"` Cpi int `json:"cpi"` Key any `json:"key"` Content struct { Studentcount int `json:"studentcount"` Chatid string `json:"chatid"` IsFiled int `json:"isFiled"` Isthirdaq int `json:"isthirdaq"` Isstart bool `json:"isstart"` Isretire int `json:"isretire"` Name string `json:"name"` Course struct { Data []struct { BelongSchoolId string `json:"belongSchoolId"` Coursestate int `json:"coursestate"` Teacherfactor string `json:"teacherfactor"` IsCourseSquare int `json:"isCourseSquare"` Schools string `json:"schools"` CourseSquareUrl string `json:"courseSquareUrl"` Imageurl string `json:"imageurl"` AppInfo string `json:"appInfo"` Name string `json:"name"` DefaultShowCatalog int `json:"defaultShowCatalog"` Id int `json:"id"` AppData int `json:"appData"` } `json:"data"` } `json:"course"` Roletype int `json:"roletype"` Id int `json:"id"` State int `json:"state"` Cpi int `json:"cpi"` Bbsid string `json:"bbsid"` IsSquare int `json:"isSquare"` } `json:"content"` Topsign int `json:"topsign"` }
ChannelItem 课程列表
type IAttachment ¶ added in v1.0.6
type PointDocumentDto ¶ added in v1.0.6
type PointDocumentDto struct { CardIndex int CourseID string ClassID string KnowledgeID int Cpi string ObjectID string Title string JobID string Jtoken string Type ctype.CardType IsSet bool }
PointDocumentDto 文档查看任务点
func (*PointDocumentDto) AttachmentsDetection ¶ added in v1.2.0
func (p *PointDocumentDto) AttachmentsDetection(attachment interface{}) (bool, error)
type PointDto ¶ added in v1.0.6
type PointDto struct { PointVideoDto PointWorkDto PointDocumentDto }
type PointVideoDto ¶ added in v1.0.6
type PointVideoDto struct { CardIndex int CourseID string ClassID string KnowledgeID int Cpi string ObjectID string FID int DToken string PlayTime int Duration int JobID string OtherInfo string Title string RT float64 Logger *log.Logger PUID string Session *Session Type ctype.CardType IsSet bool Attachment interface{} //视图获取后的原始map // contains filtered or unexported fields }
PointVideoDto 视频任务点
func (*PointVideoDto) AttachmentsDetection ¶ added in v1.0.6
func (p *PointVideoDto) AttachmentsDetection(attachment interface{}) (bool, error)
AttachmentsDetection 使用接口对每种DTO进行检测再次赋值, 以对应后续的刷取请求
type PointWorkDto ¶ added in v1.0.6
type PointWorkDto struct { CardIndex int CourseID string ClassID string KnowledgeID int Cpi string WorkID string SchoolID string JobID string PUID string KToken string Enc string Type ctype.CardType IsSet bool }
PointWorkDto 测验任务点
func (*PointWorkDto) AttachmentsDetection ¶ added in v1.0.9
func (p *PointWorkDto) AttachmentsDetection(attachment interface{}) (bool, error)
type UserEntity ¶
type WorkInputField ¶ added in v1.1.2
type WorkInputField struct { Name string Value string Type string // Optional: to store the type attribute if needed ID string // Store the id attribute if present }
WorkInputField represents an <input> element in the HTML form.
type XueXiTCourse ¶
type XueXiTCourse struct { CourseName string //课程名称 ClassId string //classId CourseId string //课程Id Cpi string //不知道是啥玩意,反正需要 PersonId string //个人Id UserId string //UserId }
XueXiTCourse 关键信息过滤截取最终的实体
type XueXiTCourseJson ¶
type XueXiTCourseJson struct { Result int `json:"result"` Msg string `json:"msg"` ChannelList []ChannelItem `json:"channelList"` Mcode string `json:"mcode"` Createcourse int `json:"createcoursed"` TeacherEndCourse int `json:"teacherEndCourse"` ShowEndCourse int `json:"showEndCourse"` HasMore bool `json:"hasMore"` StuEndCourse int `json:"stuEndCourse"` }
XueXiTCourse 课程所有信息
Click to show internal directories.
Click to hide internal directories.