v1

package
v0.0.0-...-2fe84d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PersonalTypeStudent captures enum value "student"
	PersonalTypeStudent string = "student"

	// PersonalTypeTeacher captures enum value "teacher"
	PersonalTypeTeacher string = "teacher"
)
View Source
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

func (m *CaseData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this case data based on the context it is used

func (*CaseData) MarshalBinary

func (m *CaseData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CaseData) UnmarshalBinary

func (m *CaseData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CaseData) Validate

func (m *CaseData) Validate(formats strfmt.Registry) error

Validate validates this case data

type CaseDatas

type CaseDatas struct {

	// 病例数据列表
	Items []*CaseData `json:"items"`

	// 所有病例数据总数
	TotalCount int64 `json:"total_count"`
}

CaseDatas 病例数据列表

swagger:model CaseDatas

func (*CaseDatas) ContextValidate

func (m *CaseDatas) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this case datas based on the context it is used

func (*CaseDatas) MarshalBinary

func (m *CaseDatas) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CaseDatas) UnmarshalBinary

func (m *CaseDatas) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CaseDatas) Validate

func (m *CaseDatas) Validate(formats strfmt.Registry) error

Validate validates this case datas

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

func (m *Class) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this class based on the context it is used

func (*Class) MarshalBinary

func (m *Class) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Class) UnmarshalBinary

func (m *Class) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Class) Validate

func (m *Class) Validate(formats strfmt.Registry) error

Validate validates this class

type Classes

type Classes struct {

	// 班级列表
	Items []*Class `json:"items"`

	// 所有班级总数
	TotalCount int64 `json:"total_count"`
}

Classes 班级列表

swagger:model Classes

func (*Classes) ContextValidate

func (m *Classes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this classes based on the context it is used

func (*Classes) MarshalBinary

func (m *Classes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Classes) UnmarshalBinary

func (m *Classes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Classes) Validate

func (m *Classes) Validate(formats strfmt.Registry) error

Validate validates this classes

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

func (m *MeasureDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MeasureDetail) Validate

func (m *MeasureDetail) Validate(formats strfmt.Registry) error

Validate validates this measure detail

type MeasureDetails

type MeasureDetails struct {

	// 测评数据明细列表
	Items []*MeasureDetail `json:"items"`

	// 所有测评数据明细总数
	TotalCount int64 `json:"total_count"`
}

MeasureDetails 测评数据明细列表

swagger:model MeasureDetails

func (*MeasureDetails) ContextValidate

func (m *MeasureDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MeasureDetails) Validate

func (m *MeasureDetails) Validate(formats strfmt.Registry) error

Validate validates this measure details

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

func (m *MeasureResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MeasureResult) Validate

func (m *MeasureResult) Validate(formats strfmt.Registry) error

Validate validates this measure result

type MeasureResults

type MeasureResults struct {

	// 测评数据结果分析列表
	Items []*MeasureResult `json:"items"`

	// 所有测评数据结果分析总数
	TotalCount int64 `json:"total_count"`
}

MeasureResults 测评数据结果分析列表

swagger:model MeasureResults

func (*MeasureResults) ContextValidate

func (m *MeasureResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MeasureResults) Validate

func (m *MeasureResults) Validate(formats strfmt.Registry) error

Validate validates this measure results

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

func (m *MoveData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this move data based on the context it is used

func (*MoveData) MarshalBinary

func (m *MoveData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MoveData) UnmarshalBinary

func (m *MoveData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MoveData) Validate

func (m *MoveData) Validate(formats strfmt.Registry) error

Validate validates this move data

type MoveDatas

type MoveDatas struct {

	// 运动数据列表
	Items []*MoveData `json:"items"`

	// 所有运动数据总数
	TotalCount int64 `json:"total_count"`
}

MoveDatas 运动数据列表

swagger:model MoveDatas

func (*MoveDatas) ContextValidate

func (m *MoveDatas) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this move datas based on the context it is used

func (*MoveDatas) MarshalBinary

func (m *MoveDatas) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MoveDatas) UnmarshalBinary

func (m *MoveDatas) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MoveDatas) Validate

func (m *MoveDatas) Validate(formats strfmt.Registry) error

Validate validates this move datas

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

func (m *MovePrescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MovePrescription) Validate

func (m *MovePrescription) Validate(formats strfmt.Registry) error

Validate validates this move prescription

type MovePrescriptions

type MovePrescriptions struct {

	// 运动处方列表
	Items []*MovePrescription `json:"items"`

	// 所有运动处方总数
	TotalCount int64 `json:"total_count"`
}

MovePrescriptions 运动处方列表

swagger:model MovePrescriptions

func (*MovePrescriptions) ContextValidate

func (m *MovePrescriptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MovePrescriptions) Validate

func (m *MovePrescriptions) Validate(formats strfmt.Registry) error

Validate validates this move prescriptions

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

func (m *Personal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this personal based on the context it is used

func (*Personal) MarshalBinary

func (m *Personal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Personal) UnmarshalBinary

func (m *Personal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Personal) Validate

func (m *Personal) Validate(formats strfmt.Registry) error

Validate validates this personal

type Personals

type Personals struct {

	// 个人基础信息列表
	Items []*Personal `json:"items"`

	// 所有个人基础信息总数
	TotalCount int64 `json:"total_count"`
}

Personals 个人基础信息列表

swagger:model Personals

func (*Personals) ContextValidate

func (m *Personals) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this personals based on the context it is used

func (*Personals) MarshalBinary

func (m *Personals) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Personals) UnmarshalBinary

func (m *Personals) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Personals) Validate

func (m *Personals) Validate(formats strfmt.Registry) error

Validate validates this personals

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

func (m *Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (*Principal) MarshalBinary

func (m *Principal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

func (m *Principal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Principal) Validate

func (m *Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

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

func (m *Token) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this token based on context it is used

func (*Token) MarshalBinary

func (m *Token) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Token) UnmarshalBinary

func (m *Token) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Token) Validate

func (m *Token) Validate(formats strfmt.Registry) error

Validate validates this token

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

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user based on the context it is used

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type Users

type Users struct {

	// 用户列表
	Items []*User `json:"items"`

	// 所有用户总数
	TotalCount int64 `json:"total_count"`
}

Users 用户列表

swagger:model Users

func (*Users) ContextValidate

func (m *Users) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this users based on the context it is used

func (*Users) MarshalBinary

func (m *Users) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Users) UnmarshalBinary

func (m *Users) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Users) Validate

func (m *Users) Validate(formats strfmt.Registry) error

Validate validates this users

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

func (m *Work) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this work based on the context it is used

func (*Work) MarshalBinary

func (m *Work) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Work) UnmarshalBinary

func (m *Work) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Work) Validate

func (m *Work) Validate(formats strfmt.Registry) error

Validate validates this work

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

func (m *WorkSubmit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*WorkSubmit) Validate

func (m *WorkSubmit) Validate(formats strfmt.Registry) error

Validate validates this work submit

type WorkSubmits

type WorkSubmits struct {

	// 作业提交列表
	Items []*WorkSubmit `json:"items"`

	// 所有作业提交总数
	TotalCount int64 `json:"total_count"`
}

WorkSubmits 作业提交列表

swagger:model WorkSubmits

func (*WorkSubmits) ContextValidate

func (m *WorkSubmits) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*WorkSubmits) Validate

func (m *WorkSubmits) Validate(formats strfmt.Registry) error

Validate validates this work submits

type Works

type Works struct {

	// 作业列表
	Items []*Work `json:"items"`

	// 所有作业总数
	TotalCount int64 `json:"total_count"`
}

Works 作业列表

swagger:model Works

func (*Works) ContextValidate

func (m *Works) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this works based on the context it is used

func (*Works) MarshalBinary

func (m *Works) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Works) UnmarshalBinary

func (m *Works) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Works) Validate

func (m *Works) Validate(formats strfmt.Registry) error

Validate validates this works

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL