package
Version:
v0.0.0-...-e64df44
Opens a new window with list of versions in this module.
Published: Jan 22, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Base struct {
ID string `json:"id" valid:"uuid"`
CreatedAt time.Time `json:"created_at" valid:"-"`
UpdatedAt time.Time `json:"updated_at" valid:"-"`
}
type Book struct {
Base
Title string `json:"title" valid:"required"`
Author string `json:"author" valid:"required"`
Price float64 `json:"price" valid:"required"`
Description string `json:"description" valid:"required"`
UserID string `json:"userId" valid:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.