Documentation ¶
Index ¶
- Constants
- func ArrayCol(arr any, col string) []any
- func ArrayColMap(arr any, col string) map[any]any
- type AdController
- type AdSpaceController
- type Address
- type AdminRoleController
- type AssetsManagerController
- func (c *AssetsManagerController) Construct()
- func (c *AssetsManagerController) GetInfo()
- func (c *AssetsManagerController) GetSelect()
- func (c *AssetsManagerController) GetThemes()
- func (c *AssetsManagerController) GetThumb()
- func (c *AssetsManagerController) PostAdd(orm *xorm.Engine)
- func (c *AssetsManagerController) PostEdit()
- func (c *AssetsManagerController) PostList()
- func (c *AssetsManagerController) PostTheme(cache cache.AbstractCache)
- type AttachmentController
- type AttachmentTypeController
- type BaseController
- func (c *BaseController) BindParse(receivers ...any) (err error)
- func (c *BaseController) Construct()
- func (c *BaseController) GetInfo()
- func (c *BaseController) GetSelect()
- func (c *BaseController) IsOperate(op int) bool
- func (c *BaseController) PostAdd()
- func (c *BaseController) PostDelete()
- func (c *BaseController) PostEdit()
- func (c *BaseController) PostList()
- func (c *BaseController) PostUpdate()
- type CategoryController
- type ContentController
- func (c *ContentController) Construct()
- func (c *ContentController) GetInfo()
- func (c *ContentController) GetPage()
- func (c *ContentController) PostAdd()
- func (c *ContentController) PostDelete()
- func (c *ContentController) PostEdit()
- func (c *ContentController) PostList()
- func (c *ContentController) PostPage()
- type Cpu
- type DatabaseBackupController
- type DatabaseController
- type DepartmentController
- type DictCategoryController
- type DictController
- type Disk
- type DistrictController
- type DocumentController
- type ErrorLogController
- type FieldShowInPageList
- type FormControl
- type FormController
- type IPLocate
- type ImSessionController
- type IndexController
- type KV
- type LevelController
- type LinkController
- type LogController
- type LoginController
- type MemberController
- type MemberGroupController
- type MenuController
- type MenuV2
- type Net
- type Os
- type PluginController
- type PositionController
- type PublicController
- type Rrm
- type SearchFieldDsl
- type Server
- type SettingController
- type StatController
- func (stat *StatController) GetData(orm *xorm.Engine, cacher cache.AbstractCache)
- func (_ StatController) GetLocalIP() (ip string, err error)
- func (_ StatController) GetOutIp() (*IPLocate, error)
- func (_ *StatController) InitCPU() (c Cpu, err error)
- func (_ *StatController) InitDisk() (d Disk, err error)
- func (_ *StatController) InitNet() (useages []*Net, err error)
- func (_ *StatController) InitOS() (o Os)
- func (_ *StatController) InitRAM() (r Rrm, err error)
- type TableController
- type TabsSchema
- type TagsController
- type ThemeConfig
- type UserController
Constants ¶
View Source
const ( BindTypeJson = iota BindTypeForm OpList = iota OpAdd OpEdit OpDel OpInfo )
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdController ¶
type AdController struct {
BaseController
}
func (*AdController) Construct ¶
func (c *AdController) Construct()
type AdSpaceController ¶
type AdSpaceController struct {
BaseController
}
func (*AdSpaceController) Construct ¶
func (c *AdSpaceController) Construct()
type AdminRoleController ¶
type AdminRoleController struct {
BaseController
}
func (*AdminRoleController) Construct ¶
func (c *AdminRoleController) Construct()
func (*AdminRoleController) PostAdd ¶
func (c *AdminRoleController) PostAdd()
func (*AdminRoleController) PostEdit ¶
func (c *AdminRoleController) PostEdit()
type AssetsManagerController ¶
type AssetsManagerController struct { BaseController // contains filtered or unexported fields }
AssetsManagerController Deprecated: 废弃
func (*AssetsManagerController) Construct ¶
func (c *AssetsManagerController) Construct()
func (*AssetsManagerController) GetInfo ¶
func (c *AssetsManagerController) GetInfo()
func (*AssetsManagerController) GetSelect ¶
func (c *AssetsManagerController) GetSelect()
func (*AssetsManagerController) GetThemes ¶
func (c *AssetsManagerController) GetThemes()
func (*AssetsManagerController) GetThumb ¶
func (c *AssetsManagerController) GetThumb()
func (*AssetsManagerController) PostAdd ¶
func (c *AssetsManagerController) PostAdd(orm *xorm.Engine)
func (*AssetsManagerController) PostEdit ¶
func (c *AssetsManagerController) PostEdit()
func (*AssetsManagerController) PostList ¶
func (c *AssetsManagerController) PostList()
func (*AssetsManagerController) PostTheme ¶
func (c *AssetsManagerController) PostTheme(cache cache.AbstractCache)
type AttachmentController ¶
type AttachmentController struct {
BaseController
}
@Rest(path = "/api/v1/11/{container_id}")
func (*AttachmentController) Construct ¶
func (c *AttachmentController) Construct()
func (*AttachmentController) PostAdd ¶
func (c *AttachmentController) PostAdd()
@Rest(method = "GET", route = "/gaa")
type AttachmentTypeController ¶
type AttachmentTypeController struct {
BaseController
}
func (*AttachmentTypeController) Construct ¶
func (c *AttachmentTypeController) Construct()
func (*AttachmentTypeController) PostList ¶
func (c *AttachmentTypeController) PostList()
type BaseController ¶
type BaseController struct { LastErr error // 最后一次错误对象 SearchFields []SearchFieldDsl // 设置可以搜索的字段 接收或匹配params的字段 BindType uint // 表单绑定类型 KeywordsSearch []SearchFieldDsl // 关键字搜索字段 用于关键字匹配字段 Table any // 传入Table结构体引用 Entries any // 传入Table结构体的切片 Orm *xorm.Engine P listParam ExceptCols []string // 排除数据表字段不读取 Cols []string // 仅读取指定表字段 TableKey string // 表主键 TableStructKey string // 表结构体主键字段 主要用于更新逻辑反射数据 OpBefore func(op int, v any) error // 操作前置 OpAfter func(op int, v any) error // 操作后置 apidoc.Entity ApiEntityName string SelectOp func(*xorm.Session) // select下拉列表条件构建函数, 一般用于过滤指定值的数据 UniqCheckOp func(int, *xorm.Session) // 唯一性校验构建SQL方法 一般用于删除或关停等校验是否有关联数据使用阻止关闭 SelectListKV struct { Key string Value string } pine.Controller // contains filtered or unexported fields }
func (*BaseController) BindParse ¶
func (c *BaseController) BindParse(receivers ...any) (err error)
func (*BaseController) GetInfo ¶
func (c *BaseController) GetInfo()
func (*BaseController) GetSelect ¶
func (c *BaseController) GetSelect()
func (*BaseController) IsOperate ¶
func (c *BaseController) IsOperate(op int) bool
func (*BaseController) PostAdd ¶
func (c *BaseController) PostAdd()
func (*BaseController) PostDelete ¶
func (c *BaseController) PostDelete()
func (*BaseController) PostEdit ¶
func (c *BaseController) PostEdit()
func (*BaseController) PostList ¶
func (c *BaseController) PostList()
func (*BaseController) PostUpdate ¶
func (c *BaseController) PostUpdate()
type CategoryController ¶
type CategoryController struct { BaseController // contains filtered or unexported fields }
func (*CategoryController) Construct ¶
func (c *CategoryController) Construct()
func (*CategoryController) GetSelect ¶
func (c *CategoryController) GetSelect()
type ContentController ¶
type ContentController struct {
BaseController
}
func (*ContentController) Construct ¶
func (c *ContentController) Construct()
func (*ContentController) GetInfo ¶
func (c *ContentController) GetInfo()
func (*ContentController) GetPage ¶
func (c *ContentController) GetPage()
func (*ContentController) PostAdd ¶
func (c *ContentController) PostAdd()
func (*ContentController) PostDelete ¶
func (c *ContentController) PostDelete()
func (*ContentController) PostList ¶
func (c *ContentController) PostList()
func (*ContentController) PostPage ¶
func (c *ContentController) PostPage()
type DatabaseBackupController ¶
type DatabaseBackupController struct {
BaseController
}
func (*DatabaseBackupController) BackupDelete ¶
func (c *DatabaseBackupController) BackupDelete()
func (*DatabaseBackupController) BackupDownload ¶
func (c *DatabaseBackupController) BackupDownload()
func (*DatabaseBackupController) BackupList ¶
func (c *DatabaseBackupController) BackupList()
func (*DatabaseBackupController) RegisterRoute ¶
func (c *DatabaseBackupController) RegisterRoute(b pine.IRouterWrapper)
type DatabaseController ¶
type DatabaseController struct {
pine.Controller
}
func (*DatabaseController) Backup ¶
func (c *DatabaseController) Backup()
func (*DatabaseController) Manager ¶
func (c *DatabaseController) Manager(orm *xorm.Engine, cache cache.AbstractCache)
func (*DatabaseController) Optimize ¶
func (c *DatabaseController) Optimize(orm *xorm.Engine)
func (*DatabaseController) RegisterRoute ¶
func (c *DatabaseController) RegisterRoute(b pine.IRouterWrapper)
func (*DatabaseController) Repair ¶
func (c *DatabaseController) Repair(orm *xorm.Engine)
type DepartmentController ¶
type DepartmentController struct {
BaseController
}
func (*DepartmentController) Construct ¶
func (c *DepartmentController) Construct()
func (*DepartmentController) GetSelect ¶
func (c *DepartmentController) GetSelect()
type DictCategoryController ¶
type DictCategoryController struct {
BaseController
}
func (*DictCategoryController) Construct ¶
func (c *DictCategoryController) Construct()
func (*DictCategoryController) GetSelect ¶
func (c *DictCategoryController) GetSelect()
type DictController ¶
type DictController struct {
BaseController
}
func (*DictController) Construct ¶
func (c *DictController) Construct()
func (*DictController) GetSelect ¶
func (c *DictController) GetSelect()
type DistrictController ¶
type DistrictController struct {
BaseController
}
func (*DistrictController) Construct ¶
func (c *DistrictController) Construct()
func (*DistrictController) GetSelect ¶
func (c *DistrictController) GetSelect()
func (*DistrictController) PostImport ¶
func (c *DistrictController) PostImport()
PostImport 导入外部数据库
func (*DistrictController) PostList ¶
func (c *DistrictController) PostList()
type DocumentController ¶
type DocumentController struct { BaseController // contains filtered or unexported fields }
func (*DocumentController) Construct ¶
func (c *DocumentController) Construct()
func (*DocumentController) GetSelect ¶
func (c *DocumentController) GetSelect()
func (*DocumentController) GetSql ¶
func (c *DocumentController) GetSql(orm *xorm.Engine)
func (*DocumentController) GetTable ¶
func (c *DocumentController) GetTable(cacher cache.AbstractCache)
type ErrorLogController ¶
type ErrorLogController struct {
BaseController
}
func (*ErrorLogController) Construct ¶
func (c *ErrorLogController) Construct()
func (*ErrorLogController) PostClear ¶
func (c *ErrorLogController) PostClear()
type FieldShowInPageList ¶
type FormControl ¶
type FormControl struct { Type string `json:"type"` Name string `json:"name"` Label string `json:"label"` Value any `json:"value"` Options []KV `json:"options"` Validations string `json:"validations"` Required bool `json:"required"` Description string `json:"description"` Placeholder string `json:"placeholder"` ValidationErrors string `json:"validationErrors"` Multiple bool `json:"multiple"` Precision int `json:"precision"` Inline bool `json:"inline"` Buttons []any `json:"buttons"` Limits []string `json:"limits"` LimitsLogic string `json:"limitsLogic"` }
type FormController ¶
type FormController struct { Title string `json:"title"` Api string `json:"api"` Type string `json:"type"` Mode string `json:"mode"` Controls []FormControl `json:"controls"` }
type ImSessionController ¶
type ImSessionController struct {
pine.Controller
}
func (*ImSessionController) MessagePage ¶
func (c *ImSessionController) MessagePage()
func (*ImSessionController) RegisterRoute ¶
func (c *ImSessionController) RegisterRoute(b pine.IRouterWrapper)
func (*ImSessionController) SessionPage ¶
func (c *ImSessionController) SessionPage()
func (*ImSessionController) SessionUnreadCount ¶
func (c *ImSessionController) SessionUnreadCount()
type IndexController ¶
type IndexController struct {
pine.Controller
}
func (*IndexController) Main ¶
func (c *IndexController) Main(orm *xorm.Engine, iCache cache.AbstractCache)
func (*IndexController) RegisterRoute ¶
func (c *IndexController) RegisterRoute(b pine.IRouterWrapper)
type LevelController ¶
type LevelController struct {
BaseController
}
func (*LevelController) Construct ¶
func (c *LevelController) Construct()
type LinkController ¶
type LinkController struct {
BaseController
}
func (*LinkController) Construct ¶
func (c *LinkController) Construct()
type LogController ¶
type LogController struct {
BaseController
}
func (*LogController) Construct ¶
func (c *LogController) Construct()
func (*LogController) PostClear ¶
func (c *LogController) PostClear()
type LoginController ¶
type LoginController struct {
pine.Controller
}
func (*LoginController) Login ¶
func (c *LoginController) Login()
func (*LoginController) RegisterRoute ¶
func (c *LoginController) RegisterRoute(b pine.IRouterWrapper)
type MemberController ¶
type MemberController struct {
BaseController
}
func (*MemberController) Construct ¶
func (c *MemberController) Construct()
type MemberGroupController ¶
type MemberGroupController struct {
BaseController
}
func (*MemberGroupController) Construct ¶
func (c *MemberGroupController) Construct()
func (*MemberGroupController) GetSelect ¶
func (c *MemberGroupController) GetSelect()
type MenuController ¶
type MenuController struct {
BaseController
}
func (*MenuController) Construct ¶
func (c *MenuController) Construct()
func (*MenuController) PostList ¶
func (c *MenuController) PostList()
type PluginController ¶
type PluginController struct {
BaseController
}
func (*PluginController) Construct ¶
func (c *PluginController) Construct()
func (*PluginController) GetConfig ¶
func (c *PluginController) GetConfig()
func (*PluginController) PostConfig ¶
func (c *PluginController) PostConfig()
func (*PluginController) PostEnable ¶
func (c *PluginController) PostEnable()
func (*PluginController) PostInstall ¶
func (c *PluginController) PostInstall()
type PositionController ¶
type PositionController struct {
BaseController
}
func (*PositionController) Construct ¶
func (c *PositionController) Construct()
type PublicController ¶
type PublicController struct {
BaseController
}
func (*PublicController) GetApidoc ¶
func (c *PublicController) GetApidoc()
func (*PublicController) GetMenu ¶
func (c *PublicController) GetMenu()
func (*PublicController) GetPprof ¶
func (c *PublicController) GetPprof()
func (*PublicController) GetStatsviz ¶
func (c *PublicController) GetStatsviz()
func (*PublicController) PostUpload ¶
func (c *PublicController) PostUpload()
type SearchFieldDsl ¶
type Server ¶
type Server struct { Nets []*Net `json:"nets"` Os Os `json:"os"` Cpu Cpu `json:"cpu"` Rrm Rrm `json:"ram"` Disk Disk `json:"disk"` RunningTime int64 `json:"running_time"` StartTime string `json:"start_time"` PineVersion string `json:"pine_version"` PineCmsVersion string `json:"pine_cms_version"` XormVersion string `json:"xorm_version"` LocalIp string `json:"local_ip"` OutIp *IPLocate `json:"out_ip"` MysqlVersion string `json:"mysql_version"` }
type SettingController ¶
type SettingController struct {
BaseController
}
func (*SettingController) Construct ¶
func (c *SettingController) Construct()
func (*SettingController) PostTest ¶
func (c *SettingController) PostTest()
type StatController ¶
type StatController struct {
pine.Controller
}
func (*StatController) GetData ¶
func (stat *StatController) GetData(orm *xorm.Engine, cacher cache.AbstractCache)
func (StatController) GetLocalIP ¶
func (_ StatController) GetLocalIP() (ip string, err error)
func (StatController) GetOutIp ¶
func (_ StatController) GetOutIp() (*IPLocate, error)
func (*StatController) InitCPU ¶
func (_ *StatController) InitCPU() (c Cpu, err error)
func (*StatController) InitDisk ¶
func (_ *StatController) InitDisk() (d Disk, err error)
func (*StatController) InitNet ¶
func (_ *StatController) InitNet() (useages []*Net, err error)
func (*StatController) InitOS ¶
func (_ *StatController) InitOS() (o Os)
func (*StatController) InitRAM ¶
func (_ *StatController) InitRAM() (r Rrm, err error)
type TableController ¶
type TableController struct {
BaseController
}
func (*TableController) Construct ¶
func (c *TableController) Construct()
func (TableController) GetFields ¶
func (c TableController) GetFields()
type TabsSchema ¶
type TabsSchema struct { Title string `json:"title"` Hash string `json:"hash"` Body FormController `json:"body"` }
type TagsController ¶
type TagsController struct {
BaseController
}
func (*TagsController) Construct ¶
func (c *TagsController) Construct()
type ThemeConfig ¶
type UserController ¶
type UserController struct {
BaseController
}
func (*UserController) Construct ¶
func (c *UserController) Construct()
func (*UserController) GetAdminInfo ¶
func (c *UserController) GetAdminInfo()
func (*UserController) GetInfo ¶
func (c *UserController) GetInfo()
func (*UserController) PostLogout ¶
func (c *UserController) PostLogout()
func (*UserController) PostPersonUpdate ¶
func (c *UserController) PostPersonUpdate()
Source Files ¶
- ad_controller.go
- ad_space_controller.go
- assets_manager_controller.go
- attachment_controller.go
- attachment_type_controller.go
- base_controller.go
- category_controller.go
- const.go
- content_controller.go
- database_backup_controller.go
- database_controller.go
- department_controller.go
- dict_category_controller.go
- dict_controller.go
- district_controller.go
- document_controller.go
- errlog_controller.go
- helper.go
- im_session_controller.go
- index_contoller.go
- level_controller.go
- link_controller.go
- log_controller.go
- login_controller.go
- member_controller.go
- member_group_controller.go
- menu_controller.go
- plugin_controller.go
- position_controller.go
- public_controller.go
- request_params.go
- role_controller.go
- setting_controller.go
- stat_controller.go
- table_controller.go
- tags_controller.go
- user_controller.go
Click to show internal directories.
Click to hide internal directories.