stmodel

package
v0.0.0-...-d64eb31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	core.BaseFilter `json:",inline"`
	Name            string `json:"name,omitempty" form:"name,omitempty"`
}

type Setting

type Setting struct {
	core.BaseModel `bson:",inline"`
	Name           string `json:"name" form:"name" gorm:"column:name"`
	Value          any    `gorm:"serializer:json" json:"value" form:"value"`
	Status         int    `json:"status" form:"status" gorm:"column:status"`
}

func (Setting) TableName

func (Setting) TableName() string

type SettingCreate

type SettingCreate struct {
	core.BaseModel `bson:",inline"`
	Name           string `json:"name" gorm:"column:name" validate:"required"`
	Value          any    `gorm:"serializer:json" json:"value" form:"value" validate:"required"`
}

type SettingUpdate

type SettingUpdate struct {
	Name  *string `json:"name" form:"name" gorm:"column:name"`
	Value any     `gorm:"serializer:json" json:"value" form:"value" validate:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL