models

package
v0.0.0-...-57762c0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {

	// account data
	AccountData interface{} `json:"AccountData,omitempty"`

	// account type
	AccountType string `json:"AccountType,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"`

	// ID
	ID int64 `json:"ID,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`
}

Account account

swagger:model Account

func (*Account) ContextValidate

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

ContextValidate validates this account based on context it is used

func (*Account) MarshalBinary

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

MarshalBinary interface implementation

func (*Account) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Account) Validate

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

Validate validates this account

type Class

type Class struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"`

	// ID
	ID int64 `json:"ID,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// students
	// Example: [1,2,3,4]
	Students []int64 `json:"Students"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`
}

Class class

swagger:model Class

func (*Class) ContextValidate

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

ContextValidate validates this class based on 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 Student

type Student struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"`

	// g p a
	GPA float64 `json:"GPA,omitempty"`

	// ID
	ID int64 `json:"ID,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// subjects
	// Example: [1,2,3,4]
	Subjects []int64 `json:"Subjects"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`
}

Student student

swagger:model Student

func (*Student) ContextValidate

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

ContextValidate validates this student based on context it is used

func (*Student) MarshalBinary

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

MarshalBinary interface implementation

func (*Student) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Student) Validate

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

Validate validates this student

type Subject

type Subject struct {

	// class ID
	ClassID int64 `json:"ClassID,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"`

	// ID
	ID int64 `json:"ID,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`
}

Subject subject

swagger:model Subject

func (*Subject) ContextValidate

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

ContextValidate validates this subject based on context it is used

func (*Subject) MarshalBinary

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

MarshalBinary interface implementation

func (*Subject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Subject) Validate

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

Validate validates this subject

type Teacher

type Teacher struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"`

	// ID
	ID int64 `json:"ID,omitempty"`

	// name
	Name string `json:"Name,omitempty"`

	// subject ID
	SubjectID int64 `json:"SubjectID,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`
}

Teacher teacher

swagger:model Teacher

func (*Teacher) ContextValidate

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

ContextValidate validates this teacher based on context it is used

func (*Teacher) MarshalBinary

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

MarshalBinary interface implementation

func (*Teacher) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Teacher) Validate

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

Validate validates this teacher

Jump to

Keyboard shortcuts

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