feat 初始化

This commit is contained in:
2026-03-19 23:01:53 +08:00
parent 6ac617ca4f
commit a0baf2ad7c
36 changed files with 2452 additions and 1 deletions

29
backend/app.go Normal file
View File

@@ -0,0 +1,29 @@
package backend
import (
"context"
"fmt"
)
// App struct
type App struct {
ctx context.Context
}
// NewApp creates a new App application struct
func NewApp() *App {
return &App{}
}
func (a *App) Startup(ctx context.Context) {
a.ctx = ctx
}
// Greet returns a greeting for the given name
func (a *App) Greet(name string) string {
return fmt.Sprintf("Hello %s, It's show time!", name)
}
func (a *App) Greet2(name string) string {
return fmt.Sprintf("Hello %s, It's show time!", name)
}