修改上下文参数传递,实现门店登录

This commit is contained in:
2025-06-04 17:30:08 +08:00
parent caf3d42fe5
commit 5f55223cd5
19 changed files with 237 additions and 13 deletions

View File

@ -0,0 +1,33 @@
// ================================================================================
// 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 (
IStoreAdmin interface {
Login(ctx context.Context, in *model.StoreAdminLoginIn) (out *model.StoreAdminLoginOut, err error)
Info(ctx context.Context, in *model.StoreAdminInfoIn) (out *model.StoreAdminInfoOut, err error)
}
)
var (
localStoreAdmin IStoreAdmin
)
func StoreAdmin() IStoreAdmin {
if localStoreAdmin == nil {
panic("implement not found for interface IStoreAdmin, forgot register?")
}
return localStoreAdmin
}
func RegisterStoreAdmin(i IStoreAdmin) {
localStoreAdmin = i
}