teacher

package
v0.0.0-...-7b661e0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TeacherStatusDelete = -1
View Source
const TeacherStatusValid = 0

Variables

This section is empty.

Functions

func TeacherDelete

func TeacherDelete(ids []int) (int64, error)

TeacherDelete 批量删除

func TeacherPrice

func TeacherPrice(tid, grade, ctype int) (price int, err error)

查询教师单价

Types

type Expend

type Expend struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	Amount   int    `json:"amount"`
	Month    string `json:"month"`
	SchoolId int    `json:"school_id"`
}

func ExpendDataList

func ExpendDataList(params *ExpendQueryParam) []*Expend

RoleDataList 获取学校列表

func ExpendPageList

func ExpendPageList(params *ExpendQueryParam) ([]*Expend, int64)

RolePageList 获取分页数据

func (*Expend) TableName

func (m *Expend) TableName() string

type ExpendQueryParam

type ExpendQueryParam struct {
	models.BaseQueryParam
	SchoolId  string
	NameLike  string
	DateStart string
	DateEnd   string
}

RoleQueryParam 用于搜索的类

type Subject

type Subject struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

func SubjectDataList

func SubjectDataList(params *SubjectQueryParam) []*Subject

RoleDataList 获取学校列表

func SubjectPageList

func SubjectPageList(params *SubjectQueryParam) ([]*Subject, int64)

RolePageList 获取分页数据

func (*Subject) TableName

func (m *Subject) TableName() string

type SubjectQueryParam

type SubjectQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

RoleQueryParam 用于搜索的类

type Teacher

type Teacher struct {
	Id                     int             `json:"id"`
	Name                   string          `json:"name"`
	Idcard                 string          `json:"idcard"`
	Cardno                 string          `json:"cardno"`
	Phone                  string          `json:"phone"`
	School                 *student.School `orm:"rel(one)"`
	Department             string          `json:"department"`
	Contacter              string          `json:"contacter"`
	ContacterPhone         string          `json:"contacter_phone"`
	Sex                    string          `json:"sex"`
	Picture                string          `json:"picture"`
	Birth                  string          `json:"birth"`
	EntryTime              string          `json:"entry_time"`
	ContractExpirationTime string          `json:"contract_expiration_time"`
	Reward                 string          `json:"reward"`
	Address                string          `json:"address"`
	CreatedAt              time.Time       `json:"created_at"`
	Note                   time.Time       `json:"note"`
	UpdatedAt              string          `json:"updated_at"`
	Status                 int             `json:"status"`
	Price1                 int             `json:"price1"`
	Price2                 int             `json:"price2"`
	Price3                 int             `json:"price3"`
	Price10                int             `json:"price10"`
	Price20                int             `json:"price20"`
	Price30                int             `json:"price30"`
	Price40                int             `json:"price40"`
	Price50                int             `json:"price50"`
	Price60                int             `json:"price60"`
	Price70                int             `json:"price70"`
	Price80                int             `json:"price80"`
	Price90                int             `json:"price90"`
	Price100               int             `json:"price100"`
	Price110               int             `json:"price110"`
	Price120               int             `json:"price120"`
	Xprice1                int             `json:"xprice1"`
	Xprice2                int             `json:"xprice2"`
	Xprice3                int             `json:"xprice3"`
	Xprice10               int             `json:"xprice10"`
	Xprice20               int             `json:"xprice20"`
	Xprice30               int             `json:"xprice30"`
	Xprice40               int             `json:"xprice40"`
	Xprice50               int             `json:"xprice50"`
	Xprice60               int             `json:"xprice60"`
	Xprice70               int             `json:"xprice70"`
	Xprice80               int             `json:"xprice80"`
	Xprice90               int             `json:"xprice90"`
	Xprice100              int             `json:"xprice100"`
	Xprice110              int             `json:"xprice110"`
	Xprice120              int             `json:"xprice120"`
	SocialSecurity         string          `json:"social_security"`
	Funds                  string          `json:"funds"`
	SalaryCard             string          `json:"salary_card"`
	Balance                float64         `json:"balance"`
}

func TeacherDataList

func TeacherDataList(params *TeacherQueryParam) []*Teacher

RoleDataList 获取学生列表

func TeacherPageList

func TeacherPageList(params *TeacherQueryParam) ([]*Teacher, int64)

PageList 获取分页数据

func (*Teacher) TableName

func (m *Teacher) TableName() string

type TeacherQueryParam

type TeacherQueryParam struct {
	models.BaseQueryParam
	NameLike  string
	SchoolId  string
	Status    string
	DateStart string
	DateEnd   string
}

type TeacherSubject

type TeacherSubject struct {
	Id          int    `json:"id"`
	TeacherId   int    `json:"teacher_id"`
	SubjectId   int    `json:"subject_id"`
	SubjectName string `json:"subject_name"`
}

func (*TeacherSubject) TableName

func (m *TeacherSubject) TableName() string

Jump to

Keyboard shortcuts

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