Documentation ¶
Index ¶
- Constants
- type CaseData
- type CaseDatas
- type Class
- type Classes
- type MeasureDetail
- type MeasureDetails
- type MeasureResult
- type MeasureResults
- type MoveData
- type MoveDatas
- type MovePrescription
- type MovePrescriptions
- type Personal
- type Personals
- type Principal
- type Token
- type User
- type Users
- type Work
- type WorkSubmit
- type WorkSubmits
- type Works
Constants ¶
const ( // PersonalTypeStudent captures enum value "student" PersonalTypeStudent string = "student" // PersonalTypeTeacher captures enum value "teacher" PersonalTypeTeacher string = "teacher" )
const ( // UserRoleStudent captures enum value "student" UserRoleStudent string = "student" // UserRoleTeacher captures enum value "teacher" UserRoleTeacher string = "teacher" // UserRoleDataEntry captures enum value "data_entry" UserRoleDataEntry string = "data_entry" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseData ¶
type CaseData struct { // id // Read Only: true ID string `json:"id"` // 用户id Userid string `json:"userid"` }
CaseData 病例数据信息
swagger:model CaseData
func (*CaseData) ContextValidate ¶
ContextValidate validate this case data based on the context it is used
func (*CaseData) MarshalBinary ¶
MarshalBinary interface implementation
func (*CaseData) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CaseDatas ¶
type CaseDatas struct { // 病例数据列表 Items []*CaseData `json:"items"` // 所有病例数据总数 TotalCount int64 `json:"total_count"` }
CaseDatas 病例数据列表
swagger:model CaseDatas
func (*CaseDatas) ContextValidate ¶
ContextValidate validate this case datas based on the context it is used
func (*CaseDatas) MarshalBinary ¶
MarshalBinary interface implementation
func (*CaseDatas) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Class ¶
type Class struct { // 学院 Faculty string `json:"faculty"` // 年级 Grade string `json:"grade"` // id // Read Only: true ID string `json:"id"` // 班级 Number string `json:"number"` // 专业 Subject string `json:"subject"` }
Class 班级信息
swagger:model Class
func (*Class) ContextValidate ¶
ContextValidate validate this class based on the context it is used
func (*Class) MarshalBinary ¶
MarshalBinary interface implementation
func (*Class) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Classes ¶
type Classes struct { // 班级列表 Items []*Class `json:"items"` // 所有班级总数 TotalCount int64 `json:"total_count"` }
Classes 班级列表
swagger:model Classes
func (*Classes) ContextValidate ¶
ContextValidate validate this classes based on the context it is used
func (*Classes) MarshalBinary ¶
MarshalBinary interface implementation
func (*Classes) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MeasureDetail ¶
type MeasureDetail struct { // id // Read Only: true ID string `json:"id"` // 用户id Userid string `json:"userid"` }
MeasureDetail 测评数据明细信息
swagger:model MeasureDetail
func (*MeasureDetail) ContextValidate ¶
ContextValidate validate this measure detail based on the context it is used
func (*MeasureDetail) MarshalBinary ¶
func (m *MeasureDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MeasureDetail) UnmarshalBinary ¶
func (m *MeasureDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MeasureDetails ¶
type MeasureDetails struct { // 测评数据明细列表 Items []*MeasureDetail `json:"items"` // 所有测评数据明细总数 TotalCount int64 `json:"total_count"` }
MeasureDetails 测评数据明细列表
swagger:model MeasureDetails
func (*MeasureDetails) ContextValidate ¶
ContextValidate validate this measure details based on the context it is used
func (*MeasureDetails) MarshalBinary ¶
func (m *MeasureDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MeasureDetails) UnmarshalBinary ¶
func (m *MeasureDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MeasureResult ¶
type MeasureResult struct { // id // Read Only: true ID string `json:"id"` // 用户id Userid string `json:"userid"` }
MeasureResult 测评数据结果分析信息
swagger:model MeasureResult
func (*MeasureResult) ContextValidate ¶
ContextValidate validate this measure result based on the context it is used
func (*MeasureResult) MarshalBinary ¶
func (m *MeasureResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MeasureResult) UnmarshalBinary ¶
func (m *MeasureResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MeasureResults ¶
type MeasureResults struct { // 测评数据结果分析列表 Items []*MeasureResult `json:"items"` // 所有测评数据结果分析总数 TotalCount int64 `json:"total_count"` }
MeasureResults 测评数据结果分析列表
swagger:model MeasureResults
func (*MeasureResults) ContextValidate ¶
ContextValidate validate this measure results based on the context it is used
func (*MeasureResults) MarshalBinary ¶
func (m *MeasureResults) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MeasureResults) UnmarshalBinary ¶
func (m *MeasureResults) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MoveData ¶
type MoveData struct { // id // Read Only: true ID string `json:"id"` // 用户id Userid string `json:"userid"` }
MoveData 运动数据信息
swagger:model MoveData
func (*MoveData) ContextValidate ¶
ContextValidate validate this move data based on the context it is used
func (*MoveData) MarshalBinary ¶
MarshalBinary interface implementation
func (*MoveData) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MoveDatas ¶
type MoveDatas struct { // 运动数据列表 Items []*MoveData `json:"items"` // 所有运动数据总数 TotalCount int64 `json:"total_count"` }
MoveDatas 运动数据列表
swagger:model MoveDatas
func (*MoveDatas) ContextValidate ¶
ContextValidate validate this move datas based on the context it is used
func (*MoveDatas) MarshalBinary ¶
MarshalBinary interface implementation
func (*MoveDatas) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MovePrescription ¶
type MovePrescription struct { // id // Read Only: true ID string `json:"id"` // 用户id Userid string `json:"userid"` }
MovePrescription 运动处方信息
swagger:model MovePrescription
func (*MovePrescription) ContextValidate ¶
ContextValidate validate this move prescription based on the context it is used
func (*MovePrescription) MarshalBinary ¶
func (m *MovePrescription) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MovePrescription) UnmarshalBinary ¶
func (m *MovePrescription) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MovePrescriptions ¶
type MovePrescriptions struct { // 运动处方列表 Items []*MovePrescription `json:"items"` // 所有运动处方总数 TotalCount int64 `json:"total_count"` }
MovePrescriptions 运动处方列表
swagger:model MovePrescriptions
func (*MovePrescriptions) ContextValidate ¶
ContextValidate validate this move prescriptions based on the context it is used
func (*MovePrescriptions) MarshalBinary ¶
func (m *MovePrescriptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MovePrescriptions) UnmarshalBinary ¶
func (m *MovePrescriptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Personal ¶
type Personal struct { // 出生年月 Birth string `json:"birth"` // class Class []*Class `json:"class"` // 性别 Gender string `json:"gender"` // id // Read Only: true ID string `json:"id"` // 姓名 Name string `json:"name"` // 角色 // Enum: [student teacher] Type string `json:"type"` // 用户id Userid string `json:"userid"` }
Personal 个人基础信息
swagger:model Personal
func (*Personal) ContextValidate ¶
ContextValidate validate this personal based on the context it is used
func (*Personal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Personal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Personals ¶
type Personals struct { // 个人基础信息列表 Items []*Personal `json:"items"` // 所有个人基础信息总数 TotalCount int64 `json:"total_count"` }
Personals 个人基础信息列表
swagger:model Personals
func (*Personals) ContextValidate ¶
ContextValidate validate this personals based on the context it is used
func (*Personals) MarshalBinary ¶
MarshalBinary interface implementation
func (*Personals) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Principal ¶
type Principal struct { // 用户ID(唯一) ID string `json:"id"` // 用户名(唯一) Name string `json:"name"` // 当前角色 Role string `json:"role"` }
Principal OAuth2鉴权信息
swagger:model Principal
func (*Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Token ¶
type Token struct { // jwt token AccessToken string `json:"access_token"` // token过期时间(timestamp) ExpiresAt string `json:"expires_at"` // token过期时间(秒) ExpiresIn string `json:"expires_in"` // token的类型 TokenType *string `json:"token_type"` }
Token token
swagger:model Token
func (*Token) ContextValidate ¶
ContextValidate validates this token based on context it is used
func (*Token) MarshalBinary ¶
MarshalBinary interface implementation
func (*Token) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type User ¶
type User struct { // 邮箱 Email string `json:"email"` // id // Read Only: true ID string `json:"id"` // 用户名 Name string `json:"name"` // 电话号码 Phone string `json:"phone"` // 用户密码 Ps string `json:"ps"` // 用户角色 // Enum: [student teacher data_entry] Role string `json:"role"` }
User 用户信息
swagger:model User
func (*User) ContextValidate ¶
ContextValidate validate this user based on the context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Users ¶
type Users struct { // 用户列表 Items []*User `json:"items"` // 所有用户总数 TotalCount int64 `json:"total_count"` }
Users 用户列表
swagger:model Users
func (*Users) ContextValidate ¶
ContextValidate validate this users based on the context it is used
func (*Users) MarshalBinary ¶
MarshalBinary interface implementation
func (*Users) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Work ¶
type Work struct { // 答案 Answer string `json:"answer"` // 作业内容 Content string `json:"content"` // 作业对象 Creater string `json:"creater"` // id // Read Only: true ID string `json:"id"` // 接收对象 Receive string `json:"receive"` }
Work 作业提交信息
swagger:model Work
func (*Work) ContextValidate ¶
ContextValidate validate this work based on the context it is used
func (*Work) MarshalBinary ¶
MarshalBinary interface implementation
func (*Work) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WorkSubmit ¶
type WorkSubmit struct { // 学生提交上来的数据 Content string `json:"content"` // id // Read Only: true ID string `json:"id"` // 作业id Studentid string `json:"studentid"` // 作业内容 Taskid string `json:"taskid"` }
WorkSubmit 作业提交信息
swagger:model WorkSubmit
func (*WorkSubmit) ContextValidate ¶
ContextValidate validate this work submit based on the context it is used
func (*WorkSubmit) MarshalBinary ¶
func (m *WorkSubmit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WorkSubmit) UnmarshalBinary ¶
func (m *WorkSubmit) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WorkSubmits ¶
type WorkSubmits struct { // 作业提交列表 Items []*WorkSubmit `json:"items"` // 所有作业提交总数 TotalCount int64 `json:"total_count"` }
WorkSubmits 作业提交列表
swagger:model WorkSubmits
func (*WorkSubmits) ContextValidate ¶
ContextValidate validate this work submits based on the context it is used
func (*WorkSubmits) MarshalBinary ¶
func (m *WorkSubmits) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WorkSubmits) UnmarshalBinary ¶
func (m *WorkSubmits) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Works ¶
type Works struct { // 作业列表 Items []*Work `json:"items"` // 所有作业总数 TotalCount int64 `json:"total_count"` }
Works 作业列表
swagger:model Works
func (*Works) ContextValidate ¶
ContextValidate validate this works based on the context it is used
func (*Works) MarshalBinary ¶
MarshalBinary interface implementation
func (*Works) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files ¶
- case_data.go
- case_datas.go
- class.go
- classes.go
- measure_detail.go
- measure_details.go
- measure_result.go
- measure_results.go
- move_data.go
- move_datas.go
- move_prescription.go
- move_prescriptions.go
- personal.go
- personals.go
- principal.go
- token.go
- user.go
- users.go
- work.go
- work_submit.go
- work_submits.go
- works.go