初始化项目结构

This commit is contained in:
2025-05-27 11:37:13 +08:00
commit 81594a8972
42 changed files with 441 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package hello
import (
"context"
"github.com/gogf/gf/v2/frame/g"
"server/api/hello/v1"
)
func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
return
}