2021-11-10 01:44:22 +00:00
|
|
|
package role
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2021-11-10 04:01:39 +00:00
|
|
|
"github.com/Selly-Modules/usermngmt/model"
|
2021-11-10 01:44:22 +00:00
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
)
|
|
|
|
|
|
|
|
// FindByID ...
|
2021-11-10 04:42:23 +00:00
|
|
|
func FindByID(ctx context.Context, id primitive.ObjectID) (model.DBRole, error) {
|
|
|
|
role, err := findByID(ctx, id)
|
2021-11-10 01:44:22 +00:00
|
|
|
return role, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create ...
|
2021-11-10 04:42:23 +00:00
|
|
|
func Create(payload model.RoleCreateOptions) error {
|
2021-11-10 01:44:22 +00:00
|
|
|
// TODO later
|
|
|
|
return nil
|
|
|
|
}
|