device_genre.go 526 B

123456789101112131415161718192021
  1. package admin
  2. import "server/dao"
  3. type DeviceGenreService struct{}
  4. func (dgs *DeviceGenreService) QueryAllDeviceGenres() ([]dao.DeviceGenre, error) {
  5. return dao.QueryAllDeviceGenres()
  6. }
  7. func (dgs *DeviceGenreService) CreateDeviceGenre(genre dao.DeviceGenre) error {
  8. return genre.CreateDeviceGenre()
  9. }
  10. func (dgs *DeviceGenreService) UpdateDeviceGenre(genre dao.DeviceGenre) error {
  11. return genre.UpdateDeviceGenre()
  12. }
  13. func (dgs *DeviceGenreService) DeleteDeviceGenre(id int) error {
  14. return dao.DeleteDeviceGenre(id)
  15. }