修改上下文参数传递,实现门店登录
This commit is contained in:
33
internal/service/store_admin.go
Normal file
33
internal/service/store_admin.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user