package role import ( "context" "github.com/Selly-Modules/usermngmt/internal/model" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" ) type Handle struct { Col *mongo.Collection } // FindByID ... func (h Handle) FindByID(ctx context.Context, id primitive.ObjectID) (model.DBRole, error) { role, err := h.findByID(ctx, id) return role, err } // Create ... func (h Handle) Create(payload model.RoleCreateOptions) error { // TODO later return nil }