|
|
@@ -45,10 +45,10 @@ func (e EggEnergyCommunityDividendsDb) EggEnergyCommunityDividendsFindAndCount(p |
|
|
|
return m, total, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (e EggEnergyCommunityDividendsDb) EggEnergyCommunityDividendsInsert(EggEnergyCommunityDividends *model.EggEnergyCommunityDividends) (int, error) { |
|
|
|
_, err := e.Db.InsertOne(EggEnergyCommunityDividends) |
|
|
|
func (e EggEnergyCommunityDividendsDb) EggEnergyCommunityDividendsInsert(eggEnergyCommunityDividends *model.EggEnergyCommunityDividends) (int, error) { |
|
|
|
_, err := e.Db.InsertOne(eggEnergyCommunityDividends) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
return EggEnergyCommunityDividends.Id, nil |
|
|
|
return eggEnergyCommunityDividends.Id, nil |
|
|
|
} |