1234567891011121314151617181920212223242526 |
- package admin
- import "server/dao"
- type FileService struct{}
- func (fs *FileService) QueryFileGenre() ([]dao.FileGenre, error) {
- return dao.QueryFileGenre()
- }
- func (fs *FileService) QueryFileGenreById(id int) (dao.FileGenre, error) {
- return dao.QueryFileGenreById(id)
- }
- func (fs *FileService) CreateFileGenre(fileGenre dao.FileGenre) error {
- return fileGenre.CreateFileGenre()
- }
- func (fs *FileService) UpdateFileGenre(fileGenre dao.FileGenre) error {
- return fileGenre.UpdateFileGenre()
- }
- func (fs *FileService) DeleteFileGenre(fileGenre dao.FileGenre) error {
- return fileGenre.DeleteFileGenre()
- }
|