From 3d6e04eb4664707b19429c01132bda82db4b9ce0 Mon Sep 17 00:00:00 2001 From: koenigskraut <87582318+koenigskraut@users.noreply.github.com> Date: Fri, 4 Aug 2023 01:29:02 +0300 Subject: [PATCH] rename database model files --- database/{stickers.go => sticker.go} | 14 -------------- database/{stickertags.go => stickerTag.go} | 0 database/{users.go => user.go} | 0 3 files changed, 14 deletions(-) rename database/{stickers.go => sticker.go} (89%) rename database/{stickertags.go => stickerTag.go} (100%) rename database/{users.go => user.go} (100%) diff --git a/database/stickers.go b/database/sticker.go similarity index 89% rename from database/stickers.go rename to database/sticker.go index 1367678..c4d1440 100644 --- a/database/stickers.go +++ b/database/sticker.go @@ -94,17 +94,3 @@ func (s *Sticker) Download(ctx context.Context, api *tg.Client, thumbnailSize Th } return nil, err } - -//func (s *Sticker) Fetch() (stickerID uint64, err error) { -// var temp Sticker -// err = DB.Where(&Sticker{DocumentID: s.DocumentID}).First(&temp).Error -// if err != nil && err != gorm.ErrRecordNotFound { -// return 0, err -// } -// if temp.ID > 0 { -// return temp.ID, nil -// } else { -// err = DB.Create(s).Error -// return s.ID, err -// } -//} diff --git a/database/stickertags.go b/database/stickerTag.go similarity index 100% rename from database/stickertags.go rename to database/stickerTag.go diff --git a/database/users.go b/database/user.go similarity index 100% rename from database/users.go rename to database/user.go