diff --git a/action_delete.go b/action_delete.go index cad06c6..8c3a87b 100644 --- a/action_delete.go +++ b/action_delete.go @@ -8,8 +8,8 @@ import ( "go.mongodb.org/mongo-driver/bson" ) -// DeleteDeviceByDeviceID ... -func (s Service) DeleteDeviceByDeviceID(deviceID string) error { +// DeleteByDeviceID ... +func (s Service) DeleteByDeviceID(deviceID string) error { var ( ctx = context.Background() col = s.getDeviceCollection() @@ -20,7 +20,7 @@ func (s Service) DeleteDeviceByDeviceID(deviceID string) error { // Delete if _, err := col.DeleteOne(ctx, cond); err != nil { - logger.Error("devicemngt - deleteDeviceByDeviceID", logger.LogData{ + logger.Error("devicemngt - deleteByDeviceID", logger.LogData{ "deviceID": deviceID, "err": err.Error(), }) diff --git a/action_get_userID.go b/action_get_user_id.go similarity index 100% rename from action_get_userID.go rename to action_get_user_id.go