admin

package
v0.0.0-...-b58bbae Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
	BaseController
}

func (*AdminController) Add

func (this *AdminController) Add()

添加管理员页面

func (*AdminController) Delete

func (this *AdminController) Delete()

删除管理员

func (*AdminController) Edit

func (this *AdminController) Edit()

编辑管理员页面

func (*AdminController) EditPass

func (this *AdminController) EditPass()

修改密码

func (*AdminController) Index

func (this *AdminController) Index()

管理员列表

type AdminLogController

type AdminLogController struct {
	BaseController
}

func (*AdminLogController) Delete

func (this *AdminLogController) Delete()

删除操作日记

func (*AdminLogController) DeleteBatch

func (this *AdminLogController) DeleteBatch()

批量删除操作日记

func (*AdminLogController) Index

func (this *AdminLogController) Index()

管理操作日记列表

type BannerController

type BannerController struct {
	BaseController
}

func (*BannerController) Add

func (this *BannerController) Add()

添加管理员页面

func (*BannerController) Delete

func (this *BannerController) Delete()

删除小说分类

func (*BannerController) DeleteBatch

func (this *BannerController) DeleteBatch()

批量删除操作日记

func (*BannerController) Edit

func (this *BannerController) Edit()

编辑管理员页面

func (*BannerController) Index

func (this *BannerController) Index()

管理员列表

type BaseController

type BaseController struct {
	controllers.BaseController
	// contains filtered or unexported fields
}

后台管理基类

func (*BaseController) AddLog

func (this *BaseController) AddLog(logType int, logs ...interface{}) error

添加后台操作日记

func (*BaseController) Auth

func (this *BaseController) Auth()

检测登录权限

func (*BaseController) GetNickName

func (this *BaseController) GetNickName() string

获取登陆的用户昵称

func (*BaseController) GetUid

func (this *BaseController) GetUid() uint32

获取登陆的UID

func (*BaseController) Prepare

func (this *BaseController) Prepare()

初始化

func (*BaseController) SetExcepts

func (this *BaseController) SetExcepts(actions ...string)

设置排除登录验证接口

func (*BaseController) SetLogin

func (this *BaseController) SetLogin(admin *models.Admin)

设置登录session信息

func (*BaseController) SetLogout

func (this *BaseController) SetLogout()

退出登录

type CateController

type CateController struct {
	BaseController
}

func (*CateController) Add

func (this *CateController) Add()

添加管理员页面

func (*CateController) Delete

func (this *CateController) Delete()

删除小说分类

func (*CateController) DeleteBatch

func (this *CateController) DeleteBatch()

批量删除分类

func (*CateController) Edit

func (this *CateController) Edit()

编辑管理员页面

func (*CateController) Index

func (this *CateController) Index()

管理员列表

type ChapterController

type ChapterController struct {
	BaseController
}

func (*ChapterController) Add

func (this *ChapterController) Add()

添加小说章节页面

func (*ChapterController) Delete

func (this *ChapterController) Delete()

删除小说章节

func (*ChapterController) DeleteBatch

func (this *ChapterController) DeleteBatch()

批量删除小说章节

func (*ChapterController) Edit

func (this *ChapterController) Edit()

编辑小说章节页面

func (*ChapterController) Index

func (this *ChapterController) Index()

章节列表

type ConfigController

type ConfigController struct {
	BaseController
}

func (*ConfigController) Index

func (this *ConfigController) Index()

配置页面

func (*ConfigController) Save

func (this *ConfigController) Save()

保存数据

type ExportSnatchRule

type ExportSnatchRule struct {
	Name     string                 `json:"name"`
	Code     string                 `json:"code"`
	Url      string                 `json:"url"`
	State    uint8                  `json:"state"`
	IsUpdate uint8                  `json:"is_update"`
	Charset  string                 `json:"charset"`
	Test     *models.SnatchTestData `json:"test"`
	Rules    *models.Rule           `json:"rules"`
	CateMaps []*models.CateMap      `json:"cate_maps"`
}

导出采集规则配置模型

type FeedbackController

type FeedbackController struct {
	BaseController
}

func (*FeedbackController) Delete

func (this *FeedbackController) Delete()

删除用户反馈

func (*FeedbackController) DeleteBatch

func (this *FeedbackController) DeleteBatch()

批量删除用户反馈

func (*FeedbackController) Index

func (this *FeedbackController) Index()

管理操作日记列表

type GroupController

type GroupController struct {
	BaseController
}

func (*GroupController) Add

func (this *GroupController) Add()

添加群组页面

func (*GroupController) Delete

func (this *GroupController) Delete()

删除群组

func (*GroupController) Edit

func (this *GroupController) Edit()

编辑群组页面

func (*GroupController) Index

func (this *GroupController) Index()

权限管理

type HomeController

type HomeController struct {
	BaseController
}

func (*HomeController) Index

func (this *HomeController) Index()

欢迎页面

func (*HomeController) UpImg

func (this *HomeController) UpImg()

图片上传处理

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) Index

func (this *LoginController) Index()

登录页面

func (*LoginController) Logout

func (this *LoginController) Logout()

退出登录

func (*LoginController) Prepare

func (this *LoginController) Prepare()

type MainController

type MainController struct {
	BaseController
}

func (*MainController) EditPass

func (this *MainController) EditPass()

修改个人密码

func (*MainController) EditUser

func (this *MainController) EditUser()

编辑管理员页面

func (*MainController) Index

func (this *MainController) Index()

登录页面

type NovelController

type NovelController struct {
	BaseController
}

func (*NovelController) Add

func (this *NovelController) Add()

添加小说页面

func (*NovelController) AddSnatch

func (this *NovelController) AddSnatch()

添加采集单本小说

func (*NovelController) Crawler

func (this *NovelController) Crawler()

运行爬虫

func (*NovelController) DelChapters

func (this *NovelController) DelChapters()

清空小说章节

func (this *NovelController) DelLink()

删除小说采集站点

func (*NovelController) Delete

func (this *NovelController) Delete()

删除小说

func (*NovelController) DeleteBatch

func (this *NovelController) DeleteBatch()

批量删除小说

func (*NovelController) Edit

func (this *NovelController) Edit()

编辑小说页面

func (*NovelController) FindSnatchs

func (this *NovelController) FindSnatchs()

从采集站中搜索小说

func (*NovelController) Index

func (this *NovelController) Index()

小说列表

func (this *NovelController) Links()

获取采集站点列表

func (*NovelController) Snatch

func (this *NovelController) Snatch()

手动执行采集任务

type RoleController

type RoleController struct {
	BaseController
}

func (*RoleController) Add

func (this *RoleController) Add()

添加权限页面

func (*RoleController) Edit

func (this *RoleController) Edit()

编辑权限页面

func (*RoleController) Index

func (this *RoleController) Index()

权限管理

type SearchController

type SearchController struct {
	BaseController
}

func (*SearchController) Delete

func (this *SearchController) Delete()

删除搜索记录

func (*SearchController) DeleteBatch

func (this *SearchController) DeleteBatch()

批量删除搜索记录

func (*SearchController) Index

func (this *SearchController) Index()

搜索记录列表

func (*SearchController) UpRec

func (this *SearchController) UpRec()

设置/取消推荐

type SearchLogController

type SearchLogController struct {
	BaseController
}

func (*SearchLogController) Delete

func (this *SearchLogController) Delete()

删除操作日记

func (*SearchLogController) DeleteBatch

func (this *SearchLogController) DeleteBatch()

批量删除搜索日记

func (*SearchLogController) Index

func (this *SearchLogController) Index()

管理搜索日记列表

type SnatchRuleController

type SnatchRuleController struct {
	BaseController
}

func (*SnatchRuleController) Add

func (this *SnatchRuleController) Add()

添加采集规则页面

func (*SnatchRuleController) Delete

func (this *SnatchRuleController) Delete()

删除采集规则

func (*SnatchRuleController) DeleteBatch

func (this *SnatchRuleController) DeleteBatch()

批量删除操作采集规则

func (*SnatchRuleController) Edit

func (this *SnatchRuleController) Edit()

编辑采集规则页面

func (*SnatchRuleController) Export

func (this *SnatchRuleController) Export()

导出规则文件

func (*SnatchRuleController) Goquery

func (this *SnatchRuleController) Goquery()

模拟goquery获取内容

func (*SnatchRuleController) Import

func (this *SnatchRuleController) Import()

导入规则文件

func (*SnatchRuleController) Index

func (this *SnatchRuleController) Index()

采集规则列表

func (*SnatchRuleController) Test

func (this *SnatchRuleController) Test()

采集规则测试

func (*SnatchRuleController) UpState

func (this *SnatchRuleController) UpState()

启用/禁用规则

type TestResult

type TestResult struct {
	Name    string
	Rule    string
	UseTime time.Duration
	Attr    string
	Data    string
	GetData string
	Ret     bool
}

Jump to

Keyboard shortcuts

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