models

package
v0.0.0-...-f0bbf45 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Student

type Student struct {

	// age
	Age string `json:"Age,omitempty"`

	// department
	Department string `json:"Department,omitempty"`

	// grade
	Grade int64 `json:"Grade,omitempty"`

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

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

Student student swagger:model Student

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 Teacher

type Teacher struct {

	// age
	Age string `json:"Age,omitempty"`

	// department
	Department string `json:"Department,omitempty"`

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

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

	// salary
	Salary int64 `json:"Salary,omitempty"`
}

Teacher teacher swagger:model Teacher

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