agency

package
v0.0.0-...-01c5a3f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 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 Agency

type Agency struct {
	common.Model
	common.ExtraModel
	PlatformAccountIds string `gorm:"column:platform_account_ids;comment:平台账户id列表;" json:"platformAccountIds" form:"platformAccountIds"` //  平台账户id列表
}

代售点

func (Agency) TableName

func (Agency) TableName() string

type AgencyRequest

type AgencyRequest struct {
	request.PageInfo
	Agency
}

代售点申请

type Api

type Api struct {
	common.Model
	common.ExtraModel
	Method string `gorm:"column:method;comment:请求方法;" json:"method" form:"method"` //  请求方法
	Path   string `gorm:"column:path;comment:请求路径;" json:"path" form:"path"`       //  请求路径
	Group  string `gorm:"column:group;comment:请求分组;" json:"group" form:"group"`    //  请求分组
}

Api

func (Api) TableName

func (Api) TableName() string

type ApiRequest

type ApiRequest struct {
	request.PageInfo
	Api
}

Api请求

type LoginRequest

type LoginRequest struct {
	UserName  string `json:"userName" form:"userName"`   //用户名
	Password  string `json:"password" form:"password"`   //密码
	Captcha   string `json:"captcha" form:"captcha"`     //验证码
	CaptchaId string `json:"captchaId" form:"captchaId"` // 验证码Id
}

登录请求

type LoginResponse

type LoginResponse struct {
	Token    string        `json:"token" form:"token"`       //Token
	UserInfo LoginUserInfo `json:"userInfo" form:"userInfo"` //用户信息
}

登录响应

type LoginUserInfo

type LoginUserInfo struct {
	Id       int64  `json:"id" form:"id"`             //Id
	Name     string `json:"name" form:"name"`         //名称
	UserName string `json:"userName" form:"userName"` //用户名
	Menu     Menu   `json:"menu" form:"menu"`         //菜单
}

登录用户信息

type Menu struct {
	common.Model
	common.ExtraModel
	Path      string `gorm:"column:path;comment:路径;" json:"path" form:"path"`                //  路径
	Component string `gorm:"column:component;comment:组件;" json:"component" form:"component"` //  组件
	Title     string `gorm:"column:title;comment:标题;" json:"title" form:"title"`             //  标题
	Icon      string `gorm:"column:icon;comment:图标;" json:"icon" form:"icon"`                //  图标
	IsShow    *bool  `gorm:"column:is_show;comment:是否显示;" json:"isShow" form:"isShow"`       //  是否显示
	ParentId  *int64 `gorm:"column:parent_id;comment:父级id;" json:"parentId" form:"parentId"` //  父级id

	Children []Menu `gorm:"-" json:"children" form:"children"` //子级列表
}

菜单

func (Menu) TableName() string
type MenuRequest struct {
	request.PageInfo
	Menu
}

菜单请求

type Role

type Role struct {
	common.Model
	common.ExtraModel

	Menus []Menu `gorm:"many2many:role_menu;" json:"menus"` //菜单列表
	Apis  []Api  `gorm:"many2many:role_api;" json:"apis"`   //Api列表

}

角色

func (Role) TableName

func (Role) TableName() string

type RoleRequest

type RoleRequest struct {
	request.PageInfo
	Role
}

角色请求

type User

type User struct {
	common.Model
	common.ExtraModel
	UserName                 string `gorm:"column:user_name;comment:用户名;" json:"userName" form:"userName"`                                     //  用户名
	Password                 string `gorm:"column:password;comment:密码;" json:"-" form:"password"`                                              //  密码
	MenuId                   *int64 `gorm:"column:menu_id;comment:菜单id;" json:"menuId" form:"menuId"`                                          //  菜单id
	AgencyId                 *int64 `gorm:"column:agency_id;comment:代售点id;" json:"agencyId" form:"agencyId"`                                   //  代售点id
	PlatformAccountIds       string `gorm:"column:platform_account_ids;comment:平台账户id列表;" json:"platformAccountIds" form:"platformAccountIds"` //  平台账户id列表
	TakenNum                 string `gorm:"column:taken_num;comment:取票号;" json:"takenNum" form:"takenNum"`                                     //  取票号
	PaymentAccountId         *int64 `gorm:"column:payment_account_id;comment:支付账户id;" json:"paymentAccountId" form:"paymentAccountId"`         //  支付账户id
	EnterpriseCodeEmployeeId *int64 ``                                                                                                         //  企业码员工id
	/* 132-byte string literal not displayed */
	TimeLiness              float64           `gorm:"column:time_liness;comment:时效;" json:"timeLiness" form:"timeLiness"`                                  //  时效
	TimeLinessFlashTime     common.CustomTime `gorm:"column:time_liness_flash_time;comment:时效重置时间;" json:"timeLinessFlashTime" form:"timeLinessFlashTime"` //  时效重置时间
	IsProcessPassportTicket *bool             ``                                                                                                           //  是否处理护照票
	/* 133-byte string literal not displayed */
	MaxTicketCount          *int64 `gorm:"column:max_ticket_count;comment:最大出票张数;" json:"maxTicketCount" form:"maxTicketCount"`    //  最大出票张数
	MaxOrderCount           *int64 `gorm:"column:max_order_count;comment:进单容量;" json:"maxOrderCount" form:"maxOrderCount"`         //  最大进单容量
	ExtraOrderCount         *int64 `gorm:"column:extra_order_count;comment:额外进单容量;" json:"extraOrderCount" form:"extraOrderCount"` //  额外进单容量
	IsProcessOrdinaryTicket *bool  ``                                                                                              //  是否处理普通票
	/* 133-byte string literal not displayed */
	ProcessOrdinaryTicketStartTime common.CustomTime `` //  普通票处理开始时间
	/* 161-byte string literal not displayed */
	ProcessOrdinaryTicketEndTime common.CustomTime `` //  普通票处理结束时间
	/* 155-byte string literal not displayed */
	DailyOrdinaryTicketCount *int64 `` //  每日普通票数
	/* 133-byte string literal not displayed */
	IsProcessRescheduleTicket *bool `` //  是否处理预留票
	/* 139-byte string literal not displayed */
	ProcessRescheduleTicketStartTime common.CustomTime `` //  预留票处理开始时间
	/* 167-byte string literal not displayed */
	ProcessRescheduleTicketEndTime common.CustomTime `` //  预留票处理结束时间
	/* 161-byte string literal not displayed */
	DailyRescheduleTicketCount *int64 `` //  每日预留票数
	/* 139-byte string literal not displayed */
	IsProcessRefundTicket        *bool             `gorm:"column:is_process_refund_ticket;comment:是否处理退票;" json:"isProcessRefundTicket" form:"isProcessRefundTicket"` //  是否处理退票
	ProcessRefundTicketStartTime common.CustomTime ``                                                                                                                 //  退票处理开始时间
	/* 152-byte string literal not displayed */
	ProcessRefundTicketEndTime common.CustomTime `` //  退票处理结束时间
	/* 146-byte string literal not displayed */
	DailyRefundTicketCount      *int64            `gorm:"column:daily_refund_ticket_count;comment:每日退票数;" json:"dailyRefundTicketCount" form:"dailyRefundTicketCount"` //  每日退票数
	IsProcessChildTicket        *bool             `gorm:"column:is_process_child_ticket;comment:是否处理儿童票;" json:"isProcessChildTicket" form:"isProcessChildTicket"`     //  是否处理儿童票
	ProcessChildTicketStartTime common.CustomTime ``                                                                                                                   //  儿童票处理开始时间
	/* 152-byte string literal not displayed */
	ProcessChildTicketEndTime common.CustomTime `` //  儿童票处理结束时间
	/* 146-byte string literal not displayed */
	DailyChildTicketCount *int64 `gorm:"column:daily_child_ticket_count;comment:每日儿童票数;" json:"dailyChildTicketCount" form:"dailyChildTicketCount"` //  每日儿童票数
	ClassType             *int64 `gorm:"column:class_type;comment:班次类型;" json:"classType" form:"classType"`                                         //  班次类型
	DutyInfo              string `gorm:"column:duty_info;comment:值班信息;size:2550" json:"dutyInfo" form:"dutyInfo"`                                   //  值班信息
	PlatformAccountSets   string ``                                                                                                                 //  平台账户设置
	/* 126-byte string literal not displayed */

	RoleIds []int64 `gorm:"-" json:"roleIds" form:"roleIds"`                                                          //角色Id列表
	Roles   []Role  `gorm:"many2many:user_role;" json:"roles" form:"roles"`                                           //角色列表
	Menu    Menu    `gorm:"foreignKey:MenuId;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;" json:"menu" form:"menu"` //菜单
}

用户

func (User) TableName

func (User) TableName() string

type UserRequest

type UserRequest struct {
	request.PageInfo
	User
}

用户请求

Jump to

Keyboard shortcuts

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