36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
// ================================================================================
|
|
// 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 (
|
|
IStoreRole interface {
|
|
Create(ctx context.Context, in *model.StoreRoleCreateIn) (out *model.StoreRoleCreateOut, err error)
|
|
Update(ctx context.Context, in *model.StoreRoleUpdateIn) (out *model.StoreRoleUpdateOut, err error)
|
|
Delete(ctx context.Context, in *model.StoreRoleDeleteIn) (out *model.StoreRoleDeleteOut, err error)
|
|
List(ctx context.Context, in *model.StoreRoleListIn) (out *model.StoreRoleListOut, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localStoreRole IStoreRole
|
|
)
|
|
|
|
func StoreRole() IStoreRole {
|
|
if localStoreRole == nil {
|
|
panic("implement not found for interface IStoreRole, forgot register?")
|
|
}
|
|
return localStoreRole
|
|
}
|
|
|
|
func RegisterStoreRole(i IStoreRole) {
|
|
localStoreRole = i
|
|
}
|