[feature/backend] implement /users handler + switch to username + add display name + user management cli
This commit is contained in:
parent
1d712d4e6c
commit
86ab334bc9
38 changed files with 1851 additions and 506 deletions
29
backend/main.go
Normal file
29
backend/main.go
Normal file
|
@ -0,0 +1,29 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"tss-rocks-be/cmd"
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "app",
|
||||
Short: "TSS backend application",
|
||||
Long: `TSS (The Starset Society) backend application.
|
||||
It provides both API endpoints and admin tools for content management.`,
|
||||
}
|
||||
|
||||
func init() {
|
||||
// 添加子命令
|
||||
rootCmd.AddCommand(cmd.GetUserCmd())
|
||||
rootCmd.AddCommand(cmd.GetServerCmd())
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue