This commit is contained in:
孟帅
2024-07-21 22:21:02 +08:00
parent 7d8330f72f
commit a37d088360
440 changed files with 6303 additions and 3339 deletions

View File

@@ -218,7 +218,7 @@ type (
}
IAdminRole interface {
// Verify 验证权限
Verify(ctx context.Context, path, method string) bool
Verify(ctx context.Context, path string, method string) bool
// List 获取列表
List(ctx context.Context, in *adminin.RoleListInp) (res *adminin.RoleListModel, totalCount int, err error)
// GetName 获取指定角色的名称

View File

@@ -28,7 +28,7 @@ type (
AuthorizeCall(ctx context.Context, in *commonin.WechatAuthorizeCallInp) (res *commonin.WechatAuthorizeCallModel, err error)
// GetOpenId 从缓存中获取临时openid
GetOpenId(ctx context.Context) (openId string, err error)
GetCacheKey(typ, ak string) string
GetCacheKey(typ string, ak string) string
// CleanTempMap 清理临时map
CleanTempMap(ctx context.Context)
}

View File

@@ -1,5 +1,5 @@
// ================================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================

View File

@@ -30,9 +30,9 @@ type (
// DeliverUserContext 将用户信息传递到上下文中
DeliverUserContext(r *ghttp.Request) (err error)
// IsExceptAuth 是否是不需要验证权限的路由地址
IsExceptAuth(ctx context.Context, appName, path string) bool
IsExceptAuth(ctx context.Context, appName string, path string) bool
// IsExceptLogin 是否是不需要登录的路由地址
IsExceptLogin(ctx context.Context, appName, path string) bool
IsExceptLogin(ctx context.Context, appName string, path string) bool
// Blacklist IP黑名单限制中间件
Blacklist(r *ghttp.Request)
// Develop 开发工具白名单过滤

View File

@@ -15,6 +15,7 @@ import (
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/database/gredis"
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/net/ghttp"
)
@@ -50,6 +51,8 @@ type (
List(ctx context.Context, in *sysin.AttachmentListInp) (list []*sysin.AttachmentListModel, totalCount int, err error)
// ClearKind 清空上传类型
ClearKind(ctx context.Context, in *sysin.AttachmentClearKindInp) (err error)
// AttachmentKindOption 上传类型选项
AttachmentKindOption(ctx context.Context) (opts []*model.Option, err error)
}
ISysBlacklist interface {
// Delete 删除
@@ -163,6 +166,8 @@ type (
MaxSort(ctx context.Context, in *sysin.CurdDemoMaxSortInp) (res *sysin.CurdDemoMaxSortModel, err error)
// View 获取CURD列表指定信息
View(ctx context.Context, in *sysin.CurdDemoViewInp) (res *sysin.CurdDemoViewModel, err error)
// Status 更新CURD列表状态
Status(ctx context.Context, in *sysin.CurdDemoStatusInp) (err error)
// Switch 更新CURD列表开关
Switch(ctx context.Context, in *sysin.CurdDemoSwitchInp) (err error)
}
@@ -253,6 +258,8 @@ type (
AutoLog(ctx context.Context) error
// AnalysisLog 解析日志数据
AnalysisLog(ctx context.Context) entity.SysLog
// SimplifyHeaderParams 过滤掉请求头中的大参数
SimplifyHeaderParams(data *gjson.Json) *gjson.Json
// View 获取指定请求日志信息
View(ctx context.Context, in *sysin.LogViewInp) (res *sysin.LogViewModel, err error)
// Delete 删除请求日志

View File

@@ -24,7 +24,7 @@ type (
CronStatus(ctx context.Context, in *servmsg.CronStatusReq) (err error)
// CronOnlineExec 执行一次任务
CronOnlineExec(ctx context.Context, in *servmsg.CronOnlineExecReq) (err error)
// DispatchLog 执行一次任务
// DispatchLog 查看调度日志
DispatchLog(ctx context.Context, in *servmsg.CronDispatchLogReq) (log *cron.Log, err error)
// OnExampleHello 一个tcp请求例子
OnExampleHello(ctx context.Context, req *servmsg.ExampleHelloReq)

View File

@@ -1,5 +1,5 @@
// ================================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
@@ -12,10 +12,15 @@ import (
type (
IView interface {
// GetBreadCrumb 前台系统-获取面包屑列表
GetBreadCrumb(ctx context.Context, in *model.ViewGetBreadCrumbInput) []model.ViewBreadCrumb
// GetTitle 前台系统-获取标题
GetTitle(ctx context.Context, in *model.ViewGetTitleInput) string
// RenderTpl 渲染指定模板页面
RenderTpl(ctx context.Context, tpl string, data ...model.View)
// Render 渲染默认模板页面
Render(ctx context.Context, data ...model.View)
// Error 自定义错误页面
Error(ctx context.Context, err error)
}
)