package
0.0.0-20250308070257-638a009cee3b
Repository: https://github.com/healthme-pls/medic-go-api.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
Create Admin.
Add a deleted menu entry.
No description provided by the author
No description provided by the author
contrat to admin CreateContactToAdmin creates a new ContactToAdmin entry.
No description provided by the author
No description provided by the author
CreateMarketOpenDate creates a new MarketOpenDate entry.
No description provided by the author
No description provided by the author
CreatePhoto creates a new Photo entry.
CreatePhotoByMenuID creates a Photo by MenuID with IsPublic set to false.
CreatePhotoByShopID creates a Photo by ShopID with IsPublic set to false.
CreatePhotoByWorkshopID creates a Photo by WorkshopID with IsPublic set to false.
No description provided by the author
No description provided by the author
shop menu CreateShopMenu creates a new ShopMenu entry.
shop open time CreateShopOpenDate creates a new ShopOpenDate entry.
No description provided by the author
CreateSocialMedia creates a new SocialMedia entry.
No description provided by the author
No description provided by the author
CreateTempShop สร้าง TempShop ใหม่.
CreateTempShopOpenDate สร้าง TempShopOpenDate ใหม่.
CreateWorkshop creates a new workshop and returns only its ID.
DecryptPassword decrypts an encrypted password.
Delete Admin.
Delete a deleted menu entry by ID.
No description provided by the author
No description provided by the author
func DeleteBinPhotoByTempID(db *gorm.DB, c *fiber.Ctx) error { tempID := c.Params("temp_id") if err := db.Where("temp_id = ?", tempID).Delete(&model.DeletePhoto{}).Error; err != nil { return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{"error": "Failed to delete photos by TempID"}) } return c.Status(fiber.StatusOK).JSON(fiber.Map{"message": "Deleted all photos for TempID"}) } DeleteBinPhotoByTempID deletes photos based on TempID from both the database and the uploads folder.
No description provided by the author
No description provided by the author
DeleteContactToAdmin deletes a ContactToAdmin entry by ID.
No description provided by the author
No description provided by the author
No description provided by the author
DeleteMarketOpenDate deletes a MarketOpenDate by ID.
No description provided by the author
DeletePhoto deletes a Photo entry by ID.
DeletePhotoByID deletes a photo by its ID and removes the file from the server.
No description provided by the author
No description provided by the author
No description provided by the author
DeleteShopMenu deletes a menu and related data within the same transaction.
DeleteShopMenuByID extracts menu_id from request, converts to uint, and calls DeleteShopMenu.
DeleteShopOpenDate deletes a ShopOpenDate entry by ID.
DeleteSocialMedia deletes a SocialMedia entry and its related TempSocial entry.
DeleteTempShop ลบ TempShop ตาม ID.
DeleteTempShopOpenDate ลบ TempShopOpenDate ตาม ID.
DeleteWorkshop deletes a workshop by its ID.
EncryptPassword encrypts a password using AES.
GenerateJWT generates a JWT token.
Get Admin by Username.
Get all Admins.
No description provided by the author
No description provided by the author
GetAllMarketDates retrieves all MarketOpenDate entries.
GetAllShopTimes retrieves all shop open dates.
GetAllTempShopsWaiting retrieves all TempShop entries with status "waiting".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
shop.
No description provided by the author
No description provided by the author
Get a deleted menu by ID.
Get all deleted menus by TempID.
Get all deleted menus.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetContactToAdmin retrieves a ContactToAdmin entry by ID.
No description provided by the author
No description provided by the author
No description provided by the author
GetEntrepreneurWithPassword fetches entrepreneur details including the hashed password.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetMarketOpenDate retrieves a MarketOpenDate by ID.
No description provided by the author
No description provided by the author
No description provided by the author
GetPhoto retrieves a Photo entry by ID.
GetPhotoByMenuID retrieves Photo entries by Menu ID.
GetPhotoByShopID retrieves Photo entries by Shop ID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetShopMenu retrieves a ShopMenu entry by ID.
GetShopMenuByShopID retrieves ShopMenu entries by Shop ID.
GetShopOpenDate retrieves a ShopOpenDate entry by ID.
GetShopOpenDateByShopID retrieves ShopOpenDate entries by Shop ID.
GetShopOpenDateByShopID retrieves all ShopOpenDate entries for a given shop ID.
No description provided by the author
No description provided by the author
GetSocialMedia retrieves a SocialMedia entry by ID.
GetSocialMediaByShopID retrieves SocialMedia entries by Shop ID.
No description provided by the author
GetTempShopByID ดึงข้อมูล TempShop ตาม ID.
GetTempShopOpenDateByID ดึง TempShopOpenDate ตาม ID.
GetTempShopOpenDates ดึงข้อมูล TempShopOpenDate ทั้งหมด.
GetTempShops ดึงข้อมูล TempShop ทั้งหมด.
GetTempShopsByEntrepreneurID retrieves TempShops for all shops owned by an entrepreneur.
No description provided by the author
No description provided by the author
GetWorkshopByID retrieves a workshop by its ID, including photos.
GetAllWorkshops retrieves all workshops.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Login function using Entrepreneur model directly.
Logout function to blacklist JWT token.
Register a new Entrepreneur.
ResetPassword allows an entrepreneur to reset their password.
No description provided by the author
SearchShopsidByshopname will search for a single shop by name and return only id and name.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateContactToAdmin updates a ContactToAdmin entry by ID.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateMarketOpenDate updates an existing MarketOpenDate by ID.
No description provided by the author
No description provided by the author
UpdatePhoto updates a Photo entry by ID.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateShopMenu updates a ShopMenu entry and its corresponding TempMenu entry.
UpdateShopOpenDate updates a ShopOpenDate entry by ID.
No description provided by the author
No description provided by the author
UpdateSocialMedia updates a SocialMedia entry by ID and also updates the TempSocial entry.
No description provided by the author
No description provided by the author
UpdateTempShop อัปเดต TempShop ตาม ID.
UpdateTempShopByShopID updates an existing TempShop by ShopID.
No description provided by the author
UpdateTempShopOpenDate อัปเดต TempShopOpenDate ตาม ID.
UpdateWorkshop updates an existing workshop.
No description provided by the author