im 管理后台

This commit is contained in:
richjohnrambo
2026-08-11 23:13:51 +08:00
parent 0397fe5f22
commit 331a55751d
1407 changed files with 162069 additions and 2 deletions
+41
View File
@@ -0,0 +1,41 @@
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"hotgo/internal/model"
)
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)
}
)
var (
localView IView
)
func View() IView {
if localView == nil {
panic("implement not found for interface IView, forgot register?")
}
return localView
}
func RegisterView(i IView) {
localView = i
}