initial import
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package operator
|
||||
|
||||
import (
|
||||
"mstore/app/database"
|
||||
)
|
||||
|
||||
type OperatorParams struct {
|
||||
Database *database.Database
|
||||
}
|
||||
|
||||
type Operator struct {
|
||||
db *database.Database
|
||||
}
|
||||
|
||||
func NewOperator(params *OperatorParams) (*Operator, error) {
|
||||
var err error
|
||||
oper := &Operator{
|
||||
db: params.Database,
|
||||
}
|
||||
return oper, err
|
||||
}
|
||||
Reference in New Issue
Block a user