Documentation ¶
Index ¶
- Constants
- func LogSave(model interface{}, operType string) int64
- type ConfigAction
- func (action *ConfigAction) Delete(r *ghttp.Request)
- func (action *ConfigAction) Get(r *ghttp.Request)
- func (action *ConfigAction) Index(r *ghttp.Request)
- func (action *ConfigAction) Jqgrid(r *ghttp.Request)
- func (action *ConfigAction) List(r *ghttp.Request)
- func (action *ConfigAction) Page(r *ghttp.Request)
- func (action *ConfigAction) Save(r *ghttp.Request)
- func (action *ConfigAction) Type(r *ghttp.Request)
- type DepartmentAction
- func (action *DepartmentAction) Delete(r *ghttp.Request)
- func (action *DepartmentAction) Get(r *ghttp.Request)
- func (action *DepartmentAction) Index(r *ghttp.Request)
- func (action *DepartmentAction) Jqgrid(r *ghttp.Request)
- func (action *DepartmentAction) List(r *ghttp.Request)
- func (action *DepartmentAction) Page(r *ghttp.Request)
- func (action *DepartmentAction) Save(r *ghttp.Request)
- type LogAction
- func (action *LogAction) Delete(r *ghttp.Request)
- func (action *LogAction) Get(r *ghttp.Request)
- func (action *LogAction) Index(r *ghttp.Request)
- func (action *LogAction) Jqgrid(r *ghttp.Request)
- func (action *LogAction) List(r *ghttp.Request)
- func (action *LogAction) Page(r *ghttp.Request)
- func (action *LogAction) Save(r *ghttp.Request)
- type MenuAction
- func (action *MenuAction) Delete(r *ghttp.Request)
- func (action *MenuAction) Get(r *ghttp.Request)
- func (action *MenuAction) Index(r *ghttp.Request)
- func (action *MenuAction) Jqgrid(r *ghttp.Request)
- func (action *MenuAction) List(r *ghttp.Request)
- func (action *MenuAction) Page(r *ghttp.Request)
- func (action *MenuAction) Save(r *ghttp.Request)
- func (action *MenuAction) Tree(r *ghttp.Request)
- type RoleAction
- func (action *RoleAction) Delete(r *ghttp.Request)
- func (action *RoleAction) Get(r *ghttp.Request)
- func (action *RoleAction) Index(r *ghttp.Request)
- func (action *RoleAction) Info(r *ghttp.Request)
- func (action *RoleAction) Jqgrid(r *ghttp.Request)
- func (action *RoleAction) List(r *ghttp.Request)
- func (action *RoleAction) MenuSave(r *ghttp.Request)
- func (action *RoleAction) Page(r *ghttp.Request)
- func (action *RoleAction) Save(r *ghttp.Request)
- type SysConfig
- func (model SysConfig) Delete() int64
- func (model SysConfig) Get() SysConfig
- func (model SysConfig) GetOne(form *base.BaseForm) SysConfig
- func (model *SysConfig) Insert() int64
- func (model SysConfig) List(form *base.BaseForm) []SysConfig
- func (model SysConfig) ListByProjectId(projectId int, copyStatus bool) []*SysConfig
- func (model SysConfig) Page(form *base.BaseForm) []SysConfig
- func (model SysConfig) PkVal() int
- func (model SysConfig) TableName() string
- func (model SysConfig) Update() int64
- type SysDepartment
- func (model SysDepartment) Delete() int64
- func (model SysDepartment) Get() SysDepartment
- func (model SysDepartment) GetOne(form *base.BaseForm) SysDepartment
- func (model *SysDepartment) Insert() int64
- func (model SysDepartment) List(form *base.BaseForm) []SysDepartment
- func (model SysDepartment) Page(form *base.BaseForm) []SysDepartment
- func (model SysDepartment) PkVal() int
- func (model SysDepartment) TableName() string
- func (model *SysDepartment) Update() int64
- type SysLog
- func (model SysLog) Delete() int64
- func (model SysLog) Get() SysLog
- func (model SysLog) GetOne(form *base.BaseForm) SysLog
- func (model *SysLog) Insert() int64
- func (model SysLog) List(form *base.BaseForm) []SysLog
- func (model SysLog) Page(form *base.BaseForm) []SysLog
- func (model SysLog) PkVal() int
- func (model SysLog) TableName() string
- func (model SysLog) Update() int64
- type SysMenu
- func (model SysMenu) Delete() int64
- func (model SysMenu) Get() SysMenu
- func (model SysMenu) GetOne(form *base.BaseForm) SysMenu
- func (model *SysMenu) Insert() int64
- func (model SysMenu) List(form *base.BaseForm) []SysMenu
- func (model SysMenu) ListUser(userId int, userType int) []SysMenu
- func (model SysMenu) Page(form *base.BaseForm) []SysMenu
- func (model SysMenu) PkVal() int
- func (model SysMenu) TableName() string
- func (model SysMenu) Update() int64
- type SysRole
- func (model SysRole) Delete() int64
- func (model SysRole) Get() SysRole
- func (model SysRole) GetOne(form *base.BaseForm) SysRole
- func (model *SysRole) Insert() int64
- func (model SysRole) List(form *base.BaseForm) []SysRole
- func (model SysRole) Page(form *base.BaseForm) []SysRole
- func (model SysRole) PkVal() int
- func (model SysRole) TableName() string
- func (model SysRole) Update() int64
- type SysRoleMenu
- func (model SysRoleMenu) Delete() int64
- func (model SysRoleMenu) DeleteByRoleId() int64
- func (model SysRoleMenu) Get() SysRoleMenu
- func (model *SysRoleMenu) Insert() int64
- func (model SysRoleMenu) List(form *base.BaseForm) []SysRoleMenu
- func (model SysRoleMenu) Page(form *base.BaseForm) []SysRoleMenu
- func (model SysRoleMenu) PkVal() int
- func (model SysRoleMenu) TableName() string
- func (model SysRoleMenu) Update() int64
- type SysRoleProject
- func (model SysRoleProject) Delete() int64
- func (model SysRoleProject) Get() SysRoleProject
- func (model SysRoleProject) GetOne(form *base.BaseForm) SysRoleProject
- func (model *SysRoleProject) Insert() int64
- func (model SysRoleProject) List(form *base.BaseForm) []SysRoleProject
- func (model SysRoleProject) Page(form *base.BaseForm) []SysRoleProject
- func (model SysRoleProject) PkVal() int
- func (model SysRoleProject) TableName() string
- func (model SysRoleProject) Update() int64
- type SysUser
- func (model SysUser) Delete() int64
- func (model SysUser) Get() SysUser
- func (model SysUser) GetByUsername() (SysUser, error)
- func (model *SysUser) Insert() int64
- func (model SysUser) List(form *base.BaseForm) []SysUser
- func (model SysUser) Page(form *base.BaseForm) []SysUser
- func (model SysUser) PkVal() int
- func (model SysUser) TableName() string
- func (model SysUser) Update() int64
- type SysUserRole
- func (model SysUserRole) Delete() int64
- func (model SysUserRole) DeleteByUserId() int64
- func (model SysUserRole) Get() SysUserRole
- func (model SysUserRole) Insert() int64
- func (model SysUserRole) List(form *base.BaseForm) []SysUserRole
- func (model SysUserRole) Page(form *base.BaseForm) []SysUserRole
- func (model SysUserRole) PkVal() int
- func (model SysUserRole) TableName() string
- func (model SysUserRole) Update() int64
- type UserAction
- func (action *UserAction) Delete(r *ghttp.Request)
- func (action *UserAction) Get(r *ghttp.Request)
- func (action *UserAction) Index(r *ghttp.Request)
- func (action *UserAction) Info(r *ghttp.Request)
- func (action *UserAction) Jqgrid(r *ghttp.Request)
- func (action *UserAction) List(r *ghttp.Request)
- func (action *UserAction) Menu(r *ghttp.Request)
- func (action *UserAction) Page(r *ghttp.Request)
- func (action *UserAction) Password(r *ghttp.Request)
- func (action *UserAction) RoleInfo(r *ghttp.Request)
- func (action *UserAction) RoleSave(r *ghttp.Request)
- func (action *UserAction) Save(r *ghttp.Request)
Constants ¶
View Source
const ( LOGIN = "登录" LOGOUT = "登出" INSERT = "插入" UPDATE = "更新" DELETE = "删除" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigAction ¶
type ConfigAction struct {
base.BaseRouter
}
func (*ConfigAction) Delete ¶
func (action *ConfigAction) Delete(r *ghttp.Request)
path: /delete/{id}
type DepartmentAction ¶
type DepartmentAction struct {
base.BaseRouter
}
func (*DepartmentAction) Delete ¶
func (action *DepartmentAction) Delete(r *ghttp.Request)
path: /delete/{id}
func (*DepartmentAction) Get ¶
func (action *DepartmentAction) Get(r *ghttp.Request)
path: /get/{id}
func (*DepartmentAction) Index ¶
func (action *DepartmentAction) Index(r *ghttp.Request)
path: /index
func (*DepartmentAction) Jqgrid ¶
func (action *DepartmentAction) Jqgrid(r *ghttp.Request)
path: /jqgrid
type LogAction ¶
type LogAction struct {
base.BaseRouter
}
type MenuAction ¶
type MenuAction struct {
base.BaseRouter
}
type RoleAction ¶
type RoleAction struct {
base.BaseRouter
}
type SysConfig ¶
type SysConfig struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 Name string `json:"name" gconv:"name,omitempty"` // 名称 Key string `json:"key" gconv:"key,omitempty"` // 键 Value string `json:"value" gconv:"value,omitempty"` // 值 Code string `json:"code" gconv:"code,omitempty"` // 编码 DataType int `json:"dataType" gconv:"data_type,omitempty"` // 数据类型//radio/1,KV,2,字典,3,数组 ParentId int `json:"parentId" gconv:"parent_id,omitempty"` // 类型 ParentKey string `json:"parentKey" gconv:"parent_key,omitempty"` // Sort int `json:"sort" gconv:"sort,omitempty"` // 排序号 ProjectId int `json:"projectId" gconv:"project_id,omitempty"` // 项目ID CopyStatus int `json:"copyStatus" gconv:"copy_status,omitempty"` // 拷贝状态 1 拷贝 2 不拷贝 ChangeStatus int `json:"changeStatus" gconv:"change_status,omitempty"` // 1 不可更改 2 可以更改 base.BaseModel }
func (SysConfig) ListByProjectId ¶
type SysDepartment ¶
type SysDepartment struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 ParentId int `json:"parentId" gconv:"parent_id,omitempty"` // 上级机构 Name string `json:"name" gconv:"name,omitempty"` // 部门/11111 Code string `json:"code" gconv:"code,omitempty"` // 机构编码 Sort int `json:"sort" gconv:"sort,omitempty"` // 序号 Linkman string `json:"linkman" gconv:"linkman,omitempty"` // 联系人 LinkmanNo string `json:"linkmanNo" gconv:"linkman_no,omitempty"` // 联系人电话 Remark string `json:"remark" gconv:"remark,omitempty"` // 机构描述 // columns END ParentName string `json:"parentName" gconv:"parentName,omitempty"` // 父节点名称 base.BaseModel }
func (SysDepartment) Delete ¶
func (model SysDepartment) Delete() int64
func (SysDepartment) Get ¶
func (model SysDepartment) Get() SysDepartment
func (SysDepartment) GetOne ¶
func (model SysDepartment) GetOne(form *base.BaseForm) SysDepartment
func (*SysDepartment) Insert ¶
func (model *SysDepartment) Insert() int64
func (SysDepartment) List ¶
func (model SysDepartment) List(form *base.BaseForm) []SysDepartment
func (SysDepartment) Page ¶
func (model SysDepartment) Page(form *base.BaseForm) []SysDepartment
func (SysDepartment) PkVal ¶
func (model SysDepartment) PkVal() int
func (SysDepartment) TableName ¶
func (model SysDepartment) TableName() string
func (*SysDepartment) Update ¶
func (model *SysDepartment) Update() int64
type SysLog ¶
type SysLog struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 LogType int `json:"logType" gconv:"log_type,omitempty"` // 类型 OperObject string `json:"operObject" gconv:"oper_object,omitempty"` // 操作对象 OperTable string `json:"operTable" gconv:"oper_table,omitempty"` // 操作表 OperId int `json:"operId" gconv:"oper_id,omitempty"` // 操作主键 OperType string `json:"operType" gconv:"oper_type,omitempty"` // 操作类型 OperRemark string `json:"operRemark" gconv:"oper_remark,omitempty"` // 操作备注 base.BaseModel }
type SysMenu ¶
type SysMenu struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 ParentId int `json:"parentId" gconv:"parent_id,omitempty"` // 父id Name string `json:"name" gconv:"name,omitempty"` // 名称/11111 Icon string `json:"icon" gconv:"icon,omitempty"` // 菜单图标 Urlkey string `json:"urlkey" gconv:"urlkey,omitempty"` // 菜单key Url string `json:"url" gconv:"url,omitempty"` // 链接地址 Perms string `json:"perms" gconv:"perms,omitempty"` // 授权(多个用逗号分隔,如:user:list,user:create) Status int `json:"status" gconv:"status,omitempty"` // 状态//radio/2,隐藏,1,显示 Type int `json:"type" gconv:"type,omitempty"` // 类型//select/1,目录,2,菜单,3,按钮 Sort int `json:"sort" gconv:"sort,omitempty"` // 排序 Level int `json:"level" gconv:"level,omitempty"` // 级别 base.BaseModel }
type SysRole ¶
type SysRole struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 Name string `json:"name" gconv:"name,omitempty"` // 名称/11111/ Status int `json:"status" gconv:"status,omitempty"` // 状态//radio/2,隐藏,1,显示 Sort int `json:"sort" gconv:"sort,omitempty"` // 排序 Remark string `json:"remark" gconv:"remark,omitempty"` // 说明//textarea base.BaseModel }
type SysRoleMenu ¶
type SysRoleMenu struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 RoleId int `json:"roleId" gconv:"role_id,omitempty"` // 角色id MenuId int `json:"menuId" gconv:"menu_id,omitempty"` // 菜单id base.BaseModel }
func (SysRoleMenu) Delete ¶
func (model SysRoleMenu) Delete() int64
func (SysRoleMenu) DeleteByRoleId ¶
func (model SysRoleMenu) DeleteByRoleId() int64
func (SysRoleMenu) Get ¶
func (model SysRoleMenu) Get() SysRoleMenu
func (*SysRoleMenu) Insert ¶
func (model *SysRoleMenu) Insert() int64
func (SysRoleMenu) List ¶
func (model SysRoleMenu) List(form *base.BaseForm) []SysRoleMenu
func (SysRoleMenu) Page ¶
func (model SysRoleMenu) Page(form *base.BaseForm) []SysRoleMenu
func (SysRoleMenu) PkVal ¶
func (model SysRoleMenu) PkVal() int
func (SysRoleMenu) TableName ¶
func (model SysRoleMenu) TableName() string
func (SysRoleMenu) Update ¶
func (model SysRoleMenu) Update() int64
type SysRoleProject ¶
type SysRoleProject struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 RoleId int `json:"roleId" gconv:"role_id,omitempty"` // 角色id ProjectId int `json:"projectId" gconv:"project_id,omitempty"` // 项目id base.BaseModel }
func (SysRoleProject) Delete ¶
func (model SysRoleProject) Delete() int64
func (SysRoleProject) Get ¶
func (model SysRoleProject) Get() SysRoleProject
func (SysRoleProject) GetOne ¶
func (model SysRoleProject) GetOne(form *base.BaseForm) SysRoleProject
func (*SysRoleProject) Insert ¶
func (model *SysRoleProject) Insert() int64
func (SysRoleProject) List ¶
func (model SysRoleProject) List(form *base.BaseForm) []SysRoleProject
func (SysRoleProject) Page ¶
func (model SysRoleProject) Page(form *base.BaseForm) []SysRoleProject
func (SysRoleProject) PkVal ¶
func (model SysRoleProject) PkVal() int
func (SysRoleProject) TableName ¶
func (model SysRoleProject) TableName() string
func (SysRoleProject) Update ¶
func (model SysRoleProject) Update() int64
type SysUser ¶
type SysUser struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 Uuid string `json:"uuid" gconv:"uuid,omitempty"` // UUID Username string `json:"username" gconv:"username,omitempty"` // 登录名/11111 Password string `json:"password" gconv:"password,omitempty"` // 密码 Salt string `json:"salt" gconv:"salt,omitempty"` // 密码盐 RealName string `json:"realName" gconv:"real_name,omitempty"` // 真实姓名 DepartId int `json:"departId" gconv:"depart_id,omitempty"` // 部门/11111/dict UserType int `json:"userType" gconv:"user_type,omitempty"` // 类型//select/1,管理员,2,普通用户,3,前台用户,4,第三方用户,5,API用户 Status int `json:"status" gconv:"status,omitempty"` // 状态 Thirdid string `json:"thirdid" gconv:"thirdid,omitempty"` // 第三方ID Endtime string `json:"endtime" gconv:"endtime,omitempty"` // 结束时间 Email string `json:"email" gconv:"email,omitempty"` // email Tel string `json:"tel" gconv:"tel,omitempty"` // 手机号 Address string `json:"address" gconv:"address,omitempty"` // 地址 TitleUrl string `json:"titleUrl" gconv:"title_url,omitempty"` // 头像地址 Remark string `json:"remark" gconv:"remark,omitempty"` // 说明 Theme string `json:"theme" gconv:"theme,omitempty"` // 主题 BackSiteId int `json:"backSiteId" gconv:"back_site_id,omitempty"` // 后台选择站点ID CreateSiteId int `json:"createSiteId" gconv:"create_site_id,omitempty"` // 创建站点ID ProjectId int `json:"projectId" gconv:"project_id,omitempty"` // 项目ID ProjectName string `json:"projectName" gconv:"project_name,omitempty"` // 项目名称 // columns END DepartName string `json:"departName" gconv:"departName,omitempty"` // 项目名称 base.BaseModel }
func (SysUser) GetByUsername ¶
type SysUserRole ¶
type SysUserRole struct { // columns START Id int `json:"id" gconv:"id,omitempty"` // 主键 UserId int `json:"userId" gconv:"user_id,omitempty"` // 用户id RoleId int `json:"roleId" gconv:"role_id,omitempty"` // 角色id base.BaseModel }
func (SysUserRole) Delete ¶
func (model SysUserRole) Delete() int64
func (SysUserRole) DeleteByUserId ¶
func (model SysUserRole) DeleteByUserId() int64
func (SysUserRole) Get ¶
func (model SysUserRole) Get() SysUserRole
func (SysUserRole) Insert ¶
func (model SysUserRole) Insert() int64
func (SysUserRole) List ¶
func (model SysUserRole) List(form *base.BaseForm) []SysUserRole
func (SysUserRole) Page ¶
func (model SysUserRole) Page(form *base.BaseForm) []SysUserRole
func (SysUserRole) PkVal ¶
func (model SysUserRole) PkVal() int
func (SysUserRole) TableName ¶
func (model SysUserRole) TableName() string
func (SysUserRole) Update ¶
func (model SysUserRole) Update() int64
type UserAction ¶
type UserAction struct {
base.BaseRouter
}
Click to show internal directories.
Click to hide internal directories.