fronted

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Banner struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	Url      string `json:"url"`     // 跳转地址
	ImageUrl string `json:"img_url"` // 图片地址
	Sort     int    `json:"sort"`
	State    int    `json:"state"`
}

func BannerDataList

func BannerDataList(params *BannerQueryParam) []*Banner

RoleDataList 获取学校列表

func BannerPageList

func BannerPageList(params *BannerQueryParam) ([]*Banner, int64)

RolePageList 获取分页数据

func (*Banner) TableName

func (*Banner) TableName() string

type BannerQueryParam

type BannerQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

type History

type History struct {
	Id        int       `json:"id"`
	Name      string    `json:"name"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	Sort      int       `json:"sort"`
	Date      time.Time `json:"date"`
}

func HistoryDataList

func HistoryDataList(params *HistoryQueryParam) []*History

RoleDataList 获取学校列表

func HistoryPageList

func HistoryPageList(params *HistoryQueryParam) ([]*History, int64)

RolePageList 获取分页数据

func (*History) TableName

func (*History) TableName() string

type HistoryQueryParam

type HistoryQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

type News

type News struct {
	Id        int       `json:"id"`
	ImageUrl  string    `json:"image_url"`
	Name      string    `json:"name"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	Sort      int       `json:"sort"`
}

func NewsDataList

func NewsDataList(params *NewsQueryParam) []*News

RoleDataList 获取学校列表

func NewsPageList

func NewsPageList(params *NewsQueryParam) ([]*News, int64)

RolePageList 获取分页数据

func (*News) TableName

func (*News) TableName() string

type NewsQueryParam

type NewsQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

type Project

type Project struct {
	Id         int       `json:"id"`
	Name       string    `json:"name"`
	City       string    `json:"city"`
	SchoolId   int       `json:"school_id"`
	SchoolName string    `json:"school_name"`
	Content    string    `json:"content"`
	CreatedAt  time.Time `json:"created_at"`
	Sort       int       `json:"sort"`
	ImageUrl   string    `json:"image_url"`
}

func ProjectDataList

func ProjectDataList(params *ProjectQueryParam) []*Project

RoleDataList 获取学校列表

func ProjectPageList

func ProjectPageList(params *ProjectQueryParam) ([]*Project, int64)

RolePageList 获取分页数据

func (*Project) TableName

func (m *Project) TableName() string

type ProjectQueryParam

type ProjectQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

type Recruit

type Recruit struct {
	Id        int       `json:"id"`
	ImageUrl  string    `json:"image_url"`
	Name      string    `json:"name"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	Sort      int       `json:"sort"`
}

func RecruitDataList

func RecruitDataList(params *RecruitQueryParam) []*Recruit

RoleDataList 获取学校列表

func RecruitPageList

func RecruitPageList(params *RecruitQueryParam) ([]*Recruit, int64)

RolePageList 获取分页数据

func (*Recruit) TableName

func (*Recruit) TableName() string

type RecruitQueryParam

type RecruitQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

type Staff

type Staff struct {
	Id          int       `json:"id"`
	ImageUrl    string    `json:"image_url"`
	Name        string    `json:"name"`
	Subject     int       `json:"subject"`
	SubjectName string    `json:"subject_name"`
	Content     string    `json:"content"`
	CreatedAt   time.Time `json:"created_at"`
	Sort        int       `json:"sort"`
	School      string    `json:"school"`
	SchoolName  string    `json:"school_name""`
}

func StaffDataList

func StaffDataList(params *StaffQueryParam) []*Staff

RoleDataList 获取学校列表

func StaffPageList

func StaffPageList(params *StaffQueryParam) ([]*Staff, int64)

RolePageList 获取分页数据

func (*Staff) TableName

func (*Staff) TableName() string

type StaffQueryParam

type StaffQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

type Us

type Us struct {
	Id        int       `json:"id"`
	Name      string    `json:"name"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	Sort      int       `json:"sort"`
}

func UsDataList

func UsDataList(params *UsQueryParam) []*Us

RoleDataList 获取学校列表

func UsPageList

func UsPageList(params *UsQueryParam) ([]*Us, int64)

RolePageList 获取分页数据

func (*Us) TableName

func (*Us) TableName() string

type UsQueryParam

type UsQueryParam struct {
	models.BaseQueryParam
	NameLike string
}

QueryParam 用于搜索的类

Jump to

Keyboard shortcuts

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