Documentation ¶
Index ¶
- func ActivationCodeTBName() string
- func BackendUserTBName() string
- func PcBelongedTBName() string
- func PcMchtInfosTBName() string
- func PcSourceAssignInfosTBName() string
- func Pc_source_infosTBName() string
- func ResourceTBName() string
- func RoleBackendUserRelTBName() string
- func RoleBatchDelete(ids []int) (int64, error)
- func RoleResourceRelTBName() string
- func RoleTBName() string
- func TableName(name string) string
- type ActivationCode
- type ActivationCodeQueryParam
- type BackendUser
- type BackendUserQueryParam
- type BaseQueryParam
- type JsonResult
- type PcMchtInfos
- type PcMchtInfosQueryParam
- type PcSourceAssignInfos
- type PcSourceAssignInfosParam
- type Pc_source_infos
- type Resource
- type Role
- type RoleBackendUserRel
- type RoleQueryParam
- type RoleResourceRel
- type Tbl_pc_belonged
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivationCodeTBName ¶
func ActivationCodeTBName() string
BackendUserTBName 获取 BackendUser 对应的表名称
func PcBelongedTBName ¶
func PcBelongedTBName() string
func Pc_source_infosTBName ¶
func Pc_source_infosTBName() string
func RoleBackendUserRelTBName ¶
func RoleBackendUserRelTBName() string
RoleBackendUserRelTBName 角色与用户多对多关系表
Types ¶
type ActivationCode ¶
type ActivationCode struct { ACTIVE_CODE string `orm:"column(active_code);pk"` ACTIVE_FLG string `orm:"column(active_flg)"` Active_belong string `orm:"column(active_belong)"` RecUpdTs time.Time `orm:"column(REC_UPD_TS)"` RecCrtTs time.Time `orm:"column(REC_CRT_TS)"` RecUpd string `orm:"-"` RecCrt string `orm:"-"` }
Role 用户角色 实体类
func ActivationCodeList ¶
func ActivationCodeList(params *ActivationCodeQueryParam) ([]*ActivationCode, int64)
RolePageList 获取分页数据
func (*ActivationCode) TableName ¶
func (a *ActivationCode) TableName() string
type ActivationCodeQueryParam ¶
type ActivationCodeQueryParam struct { BaseQueryParam NameLike string ActivationCode string //为空不查询,有值精确查询 Activation string //为空不查询,有值精确查询 Name string BelongName string Seq int }
RoleQueryParam 用于搜索的类
type BackendUser ¶
type BackendUser struct { Id int 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:"-"` }
BackendUser 实体类
func BackendUserOneByUserName ¶
func BackendUserOneByUserName(username, userpwd string) (*BackendUser, error)
BackendUserOneByUserName 根据用户名密码获取单条
func BackendUserPageList ¶
func BackendUserPageList(params *BackendUserQueryParam) ([]*BackendUser, int64)
BackendUserPageList 获取分页数据
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"` }
BaseQueryParam 用于查询的类
type JsonResult ¶
type JsonResult struct { Code enums.JsonResultCode `json:"code"` Msg string `json:"msg"` Obj interface{} `json:"obj"` }
JsonResult 用于返回ajax请求的基类
type PcMchtInfos ¶
type PcMchtInfos struct { MchtCd string `orm:"column(MCHT_CD);pk"` TermId string `orm:"column(TERM_ID)"` MchtNm string `orm:"column(MCHT_NM)"` ActiveFlg string `orm:"column(ACTIVE_FLG)"` SignFlg string `orm:"column(SIGN_FLG)"` Term_batch string `orm:"column(TERM_BATCH)"` Term_seq string `orm:"column(TERM_SEQ)"` TermProd string `orm:"column(TERM_PROD)"` TermModel string `orm:"column(TERM_MODEL)"` BrandKsn string `orm:"column(BRAND_KSN)"` ActiveCode string `orm:"column(active_code)"` KeyDownFlg string `orm:"column(KEY_DOWN_FLG)"` SessionKey string `orm:"column(SESSION_KEY)"` TermPubKey string `orm:"column(TERM_PUB_KEY)"` ServerPubKey string `orm:"column(SERVER_PUB_KEY)"` ServerPriKey string `orm:"column(SERVER_PRI_KEY)"` PbocIcKey string `orm:"column(PBOC_IC_KEY)"` PbocIcParam string `orm:"column(PBOC_IC_PARAM)"` RecUpdTs time.Time `orm:"column(REC_UPD_TS);type(date)"` RecCrtTs time.Time `orm:"column(REC_CRT_TS);type(date)"` Pc_expired_date int `orm:"column(pc_expired_date)"` }
Role 用户角色 实体类
func PcMchtInfosOne ¶
func PcMchtInfosOne(MchtCd string) (*PcMchtInfos, error)
func PcMchtInfosPageList ¶
func PcMchtInfosPageList(params *PcMchtInfosQueryParam) ([]*PcMchtInfos, int64)
BackendUserPageList 获取分页数据
func (*PcMchtInfos) TableName ¶
func (a *PcMchtInfos) TableName() string
func (*PcMchtInfos) TableUnique ¶
func (a *PcMchtInfos) TableUnique() [][]string
type PcMchtInfosQueryParam ¶
type PcMchtInfosQueryParam struct { BaseQueryParam MchtCdLike string //模糊查询 ActiveCodeLike string //模糊查询 TermID string //模糊查询 SearchStatus string //为空不查询,有值精确查询 }
type PcSourceAssignInfos ¶
type PcSourceAssignInfos struct { Assign_level int `orm:"column(assign_level)"` AssignLevel string `orm:"-"` AssignKey string `orm:"column(assign_key);pk"` SourceType string `orm:"-"` App_source_type string `orm:"column(app_source_type)"` App_source_list string `orm:"column(app_source_list)" json:"-"` Rec_upd_ts time.Time `orm:"column(rec_upd_ts);auto_now_add;type(datetime)" json:"-"` Rec_crt_ts time.Time `orm:"column(rec_crt_ts);auto_now;type(datetime)" json:"-"` App_assign_desc string `orm:"column(app_assign_desc)"` AppSourceVersion string `orm:"-"` }
func PcSourceAssignInfosOne ¶
func PcSourceAssignInfosOne(id string) (*PcSourceAssignInfos, error)
func PcSourceAssignInfosPageList ¶
func PcSourceAssignInfosPageList(params *PcSourceAssignInfosParam) ([]*PcSourceAssignInfos, int64)
func (*PcSourceAssignInfos) TableName ¶
func (p *PcSourceAssignInfos) TableName() string
func (*PcSourceAssignInfos) TableUnique ¶
func (p *PcSourceAssignInfos) TableUnique() [][]string
type PcSourceAssignInfosParam ¶
type PcSourceAssignInfosParam struct { BaseQueryParam LevelLike string //模糊查询 KeyLike string //模糊查询 Mobile string //精确查询 SearchStatus string //为空不查询,有值精确查询 }
type Pc_source_infos ¶
type Pc_source_infos struct { App_id string `orm:"column(app_id);pk"` App_source_type string `orm:"column(app_source_type)"` App_source_code string `orm:"column(app_source_code)"` App_source_url string `orm:"column(app_source_url)"` App_source_md5 string `orm:"column(app_source_md5)"` App_source_version_code string `orm:"column(app_source_version_code)"` App_source_version_name string `orm:"column(app_source_version_name)"` Rec_upd_ts time.Time `orm:"column(rec_upd_ts);auto_now_add;type(datetime)"` Rec_crt_ts time.Time `orm:"column(rec_crt_ts);auto_now;type(datetime)"` App_ins_id string `orm:"column(app_ins_id)"` App_prod string `orm:"column(app_prod)"` }
func (*Pc_source_infos) TableName ¶
func (p *Pc_source_infos) TableName() string
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 权限控制资源表
func ResourceTreeGrid4Parent ¶
ResourceTreeGrid4Parent 获取可以成为某个节点父节点的列表
func ResourceTreeGridByUserId ¶
ResourceTreeGridByUserId 根据用户获取有权管理的资源列表,并整理成teegrid格式
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 RoleQueryParam ¶
type RoleQueryParam struct { BaseQueryParam NameLike string ActivationCode string //为空不查询,有值精确查询 Activation string //为空不查询,有值精确查询 }
RoleQueryParam 用于搜索的类
type RoleResourceRel ¶
type RoleResourceRel struct { Id int Role *Role `orm:"rel(fk)"` //外键 Resource *Resource `orm:"rel(fk)" ` // 外键 Created time.Time `orm:"auto_now_add;type(datetime)"` }
RoleResourceRel 角色与资源关系表
type Tbl_pc_belonged ¶
type Tbl_pc_belonged struct { Belong_id int `orm:"column(belong_id);pk"` Name_ids string `orm:"column(name_ids)"` App_name string `orm:"column(app_name)"` Real_name string `orm:"column(real_name)"` Rec_crt_ts time.Time Rec_upd_ts time.Time }
func (Tbl_pc_belonged) TableName ¶
func (t Tbl_pc_belonged) TableName() string
Click to show internal directories.
Click to hide internal directories.