preorder/models/author.go
2024-06-18 00:37:32 -04:00

16 lines
332 B
Go

package models
type Author struct {
ID uint `json:"id" gorm:"primary_key"`
FullName string `json:"full_name"`
}
type CreateAuthorInput struct {
ID uint `json:"id" binding:"required"`
FullName string `json:"full_name" binding:"required"`
}
type UpdateAuthorInput struct {
FullName string `json:"full_name"`
}