feat: add book admin display fields

This commit is contained in:
2026-04-27 13:53:37 +08:00
parent 67c33d06be
commit 2fa15625b0
20 changed files with 472 additions and 70 deletions

View File

@@ -14,7 +14,7 @@ func (s *BookAuthorService) CreateBookAuthor(item book.BookAuthor) error {
if err := validateBookAuthor(item); err != nil {
return err
}
return global.GVA_DB.Save(&item).Error
return createWithExplicitIsEnabled(&item, item.IsEnabled)
}
func (s *BookAuthorService) DeleteBookAuthor(item book.BookAuthor) error {