common_models

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlBy

type ControlBy struct {
	CreatorId  string `json:"creatorId" gorm:"column:creator_id;index;comment:创建者"`
	ModifierId string `json:"modifierId" gorm:"column:modifier_id;index;comment:更新者"`
}

func (*ControlBy) SetCreatedBy

func (e *ControlBy) SetCreatedBy(creatorId string)

SetCreatedBy 设置创建人id

func (*ControlBy) SetUpdatedBy

func (e *ControlBy) SetUpdatedBy(modifierId string)

SetUpdatedBy 设置修改人id

type DataDicItem added in v0.3.9

type DataDicItem struct {
	DicKey       string                      `json:"dicKey"`
	DicLabel     string                      `json:"dicLabel"`
	DicValueType dic_value_type.DicValueType `json:"dicValueType"`
	DicValue     any                         `json:"dicValue"`
}

DataDicItem 数据字典

type MQMsg

type MQMsg struct {
	Msg  string `json:"msg"`
	Sign string `json:"sign"`
}

MQMsg XMQ推送给消费者的消息体(需要验签)

type ModelTime

type ModelTime struct {
	CreateTime   xtime.Time `json:"createTime" gorm:"column:create_time;comment:创建时间"`
	ModifiedTime xtime.Time `json:"modifiedTime" gorm:"column:modified_time;comment:最后更新时间"`
}

type Page

type Page struct {
	PageNum  int `json:"pageNum" url:"pageNum" gorm:"-"`
	PageSize int `json:"pageSize" url:"pageSize" gorm:"-"`
}

func (Page) GetLimit

func (p Page) GetLimit() int

func (Page) GetOffset

func (p Page) GetOffset() int

type PrimaryKey

type PrimaryKey struct {
	Id string `json:"id" gorm:"column:id;primaryKey;comment:主键编码" url:"id"`
}

func (*PrimaryKey) SetPrimaryKey

func (e *PrimaryKey) SetPrimaryKey(primaryKey string)

SetPrimaryKey 主键

Jump to

Keyboard shortcuts

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