初始化项目框架,完成部分接口开发

This commit is contained in:
2025-07-10 21:04:29 +08:00
commit b2871ec0d2
168 changed files with 6399 additions and 0 deletions

34
internal/service/admin.go Normal file
View File

@ -0,0 +1,34 @@
// ================================================================================
// 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"
"server/internal/model"
)
type (
IAdmin interface {
Login(ctx context.Context, in *model.AdminLoginIn) (out *model.AdminLoginOut, err error)
Info(ctx context.Context, in *model.AdminInfoIn) (out *model.AdminInfoOut, err error)
EditPass(ctx context.Context, in *model.AdminEditPassIn) (out *model.AdminEditPassOut, err error)
}
)
var (
localAdmin IAdmin
)
func Admin() IAdmin {
if localAdmin == nil {
panic("implement not found for interface IAdmin, forgot register?")
}
return localAdmin
}
func RegisterAdmin(i IAdmin) {
localAdmin = i
}