go-common/app/admin/ep/merlin/service/image.go

26 lines
520 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"go-common/app/admin/ep/merlin/model"
)
// QueryImage query image.
func (s *Service) QueryImage() ([]*model.Image, error) {
return s.dao.Images()
}
// AddImage add image.
func (s *Service) AddImage(image *model.Image) error {
return s.dao.AddImage(image)
}
// UpdateImage update image.
func (s *Service) UpdateImage(image *model.Image) error {
return s.dao.UpdateImage(image)
}
// DeleteImage delete image.
func (s *Service) DeleteImage(iID int64) error {
return s.dao.DelImage(iID)
}