mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 08:36:14 +08:00
增加前台模块,添加实例html模板页面
This commit is contained in:
16
server/api/home/base/site.go
Normal file
16
server/api/home/base/site.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Package base
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2022 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
//
|
||||
package base
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type SiteIndexReq struct {
|
||||
g.Meta `path:"/index" method:"get" summary:"首页" tags:"首页"`
|
||||
}
|
||||
type SiteIndexRes struct {
|
||||
g.Meta `mime:"text/html" type:"string" example:"<html/>"`
|
||||
}
|
Reference in New Issue
Block a user