书籍模块
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/model/book"
|
||||
commonModel "github.com/flipped-aurora/gin-vue-admin/server/model/common"
|
||||
)
|
||||
|
||||
func validateBook(item book.Book) error {
|
||||
@@ -59,8 +60,8 @@ var validBookPublishStatuses = map[string]bool{
|
||||
}
|
||||
|
||||
var validBookAuthorStatuses = map[string]bool{
|
||||
book.BookAuthorStatusEnabled: true,
|
||||
book.BookAuthorStatusDisabled: true,
|
||||
commonModel.CommonEnabledStatusEnabled: true,
|
||||
commonModel.CommonEnabledStatusDisabled: true,
|
||||
}
|
||||
|
||||
var validBookCommentStatuses = map[string]bool{
|
||||
|
||||
Reference in New Issue
Block a user