Documentation ¶
Index ¶
- func BackendUserTBName() string
- func BannerTBName() string
- func ClassRecordTBName() string
- func Conf() string
- func ContractPriceTBName() string
- func ContractTBName() string
- func ExpendTBName() string
- func HistoryTBName() string
- func NewsTBName() string
- func ProjectTBName() string
- func RecruitTBName() string
- func ResourceTBName() string
- func RoleBackendUserRelTBName() string
- func RoleResourceRelTBName() string
- func RoleTBName() string
- func Runmode() bool
- func ScheduleTBName() string
- func SchoolTBName() string
- func StaffTBName() string
- func StudentAreaTBName() string
- func StudentSchoolTBName() string
- func StudentTBName() string
- func SubjectTBName() string
- func TableName(name string) string
- func TeacherSubjectTBName() string
- func TeacherTBName() string
- func UsTBName() string
- type BackendUser
- type BackendUserQueryParam
- type BaseQueryParam
- type JsonResult
- type Resource
- type Role
- type RoleBackendUserRel
- type RoleBackendUserRelQueryParam
- type RoleQueryParam
- type RoleResourceRel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BannerTBName ¶
func BannerTBName() string
func ClassRecordTBName ¶
func ClassRecordTBName() string
func ContractPriceTBName ¶
func ContractPriceTBName() string
func ContractTBName ¶
func ContractTBName() string
func ExpendTBName ¶
func ExpendTBName() string
func HistoryTBName ¶
func HistoryTBName() string
func NewsTBName ¶
func NewsTBName() string
func ProjectTBName ¶
func ProjectTBName() string
func RecruitTBName ¶
func RecruitTBName() string
func RoleBackendUserRelTBName ¶
func RoleBackendUserRelTBName() string
RoleBackendUserRelTBName 角色与用户多对多关系表
func ScheduleTBName ¶
func ScheduleTBName() string
func SchoolTBName ¶
func SchoolTBName() string
func StaffTBName ¶
func StaffTBName() string
func StudentAreaTBName ¶
func StudentAreaTBName() string
func StudentSchoolTBName ¶
func StudentSchoolTBName() string
func StudentTBName ¶
func StudentTBName() string
func SubjectTBName ¶
func SubjectTBName() string
func TeacherSubjectTBName ¶
func TeacherSubjectTBName() string
func TeacherTBName ¶
func TeacherTBName() string
Types ¶
type BackendUser ¶
type BackendUser struct { Id int `orm:"column(id)"` RealName string `orm:"size(32)"` UserName string `orm:"size(24)"` UserPwd string `json:"-"` IsSuper bool Status int Mobile string `orm:"size(16)"` Email string `orm:"size(256)"` Avatar string `orm:"size(256)"` RoleIds []int `orm:"-" form:"RoleIds"` RoleBackendUserRel []*RoleBackendUserRel `orm:"reverse(many)"` // 设置一对多的反向关系 ResourceUrlForList []string `orm:"-"` SchoolId int }
BackendUser 实体类
type BackendUserQueryParam ¶
type BackendUserQueryParam struct { BaseQueryParam UserNameLike string //模糊查询 RealNameLike string //模糊查询 Mobile string //精确查询 SearchStatus string //为空不查询,有值精确查询 }
BackendUserQueryParam 用于查询的类
type BaseQueryParam ¶
type BaseQueryParam struct { Sort string `json:"sort"` Order string `json:"order"` Offset int64 `json:"offset"` Limit int `json:"limit"` CurUser BackendUser }
BaseQueryParam 用于查询的类
type JsonResult ¶
type JsonResult struct { Code enums.JsonResultCode `json:"code"` Msg string `json:"msg"` Obj interface{} `json:"obj"` }
JsonResult 用于返回ajax请求的基类
type Resource ¶
type Resource struct { Id int Name string `orm:"size(64)"` Parent *Resource `orm:"null;rel(fk)"` // RelForeignKey relation Rtype int Seq int Sons []*Resource `orm:"reverse(many)"` // fk 的反向关系 SonNum int `orm:"-"` Icon string `orm:"size(32)"` LinkUrl string `orm:"-"` UrlFor string `orm:"size(256)" Json:"-"` HtmlDisabled int `orm:"-"` //在html里应用时是否可用 Level int `orm:"-"` //第几级,从0开始 RoleResourceRel []*RoleResourceRel `orm:"reverse(many)"` // 设置一对多的反向关系 }
Resource 权限控制资源表
type Role ¶
type Role struct { Id int `form:"Id"` Name string `form:"Name"` Seq int RoleResourceRel []*RoleResourceRel `orm:"reverse(many)" json:"-"` // 设置一对多的反向关系 RoleBackendUserRel []*RoleBackendUserRel `orm:"reverse(many)" json:"-"` // 设置一对多的反向关系 }
Role 用户角色 实体类
type RoleBackendUserRel ¶
type RoleBackendUserRel struct { Id int Role *Role `orm:"rel(fk)"` //外键 BackendUser *BackendUser `orm:"rel(fk)" ` // 外键 Created time.Time `orm:"auto_now_add;type(datetime)"` }
RoleBackendUserRel 角色与用户关系
func (*RoleBackendUserRel) TableName ¶
func (a *RoleBackendUserRel) TableName() string
TableName 设置表名
type RoleBackendUserRelQueryParam ¶
type RoleBackendUserRelQueryParam struct { BaseQueryParam ID int BackendUserID int RoleID int IDIn []int }
type RoleQueryParam ¶
type RoleQueryParam struct { BaseQueryParam NameLike string }
RoleQueryParam 用于搜索的类
Source Files ¶
Click to show internal directories.
Click to hide internal directories.