Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRecordNotFound = gorm.ErrRecordNotFound
)
Functions ¶
func RemoveImageByID ¶
func RemoveImageByName ¶
func RemoveImageInStorage ¶
func ReplaceImageByName ¶
func SaveNewImage ¶
Types ¶
type Image ¶
type Image struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty" gorm:"unique"`
Ext string `json:"ext"`
Path string `json:"path,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
}
func GetImageByID ¶
func GetImageByName ¶
func GetImageList ¶
Click to show internal directories.
Click to hide internal directories.