Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRequest ¶
type GetRequest struct {
Id uint64 `json:"id"`
}
func (*GetRequest) SetId ¶
func (r *GetRequest) SetId(id uint64)
func (*GetRequest) SetIdByString ¶
func (r *GetRequest) SetIdByString(id string) error
type ResourceMeta ¶
type ResourceMeta struct { // 自增Id Id uint64 `json:"id" gorm:"column:id;type:uint;primary_key;" unique:"true" description:"Id"` // 创建时间 CreatedAt time.Time `` /* 126-byte string literal not displayed */ // 更新时间 UpdatedAt *time.Time `json:"updated_at" gorm:"column:updated_at;type:timestamp;" optional:"true" description:"更新时间"` // 删除时间 DeletedAt *time.Time `json:"deleted_at" gorm:"column:deleted_at;type:timestamp;index" optional:"true" description:"删除时间"` }
func NewResourceMeta ¶
func NewResourceMeta() *ResourceMeta
Click to show internal directories.
Click to hide internal directories.