优化
This commit is contained in:
@@ -24,3 +24,9 @@ type ParameterRepo interface {
|
||||
FindParameter(context.Context, uint, string) (*SystemParameter, error)
|
||||
ListParameters(context.Context, int, int, *SystemParameter) ([]*SystemParameter, int64, error)
|
||||
}
|
||||
|
||||
type ParameterUsecase struct{ ParameterRepo }
|
||||
|
||||
func NewParameterUsecase(repo ParameterRepo) *ParameterUsecase {
|
||||
return &ParameterUsecase{ParameterRepo: repo}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user