sys_dictionary_detail.go 682 字节
Newer Older
Mr.奇淼('s avatar
Mr.奇淼( 已提交
1 2 3 4
// 自动生成模板SysDictionaryDetail
package model

import (
Mr.奇淼('s avatar
Mr.奇淼( 已提交
5
	"gorm.io/gorm"
Mr.奇淼('s avatar
Mr.奇淼( 已提交
6 7 8 9
)

// 如果含有time.Time 请自行import time包
type SysDictionaryDetail struct {
Mr.奇淼('s avatar
Mr.奇淼( 已提交
10 11 12 13 14 15 16
	gorm.Model
	Label           string `json:"label" form:"label" gorm:"column:label;comment:'展示值'"`
	Value           int    `json:"value" form:"value" gorm:"column:value;comment:'字典值'"`
	Status          *bool  `json:"status" form:"status" gorm:"column:status;comment:'启用状态'"`
	Sort            int    `json:"sort" form:"sort" gorm:"column:sort;comment:'排序标记'"`
	SysDictionaryID int    `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:'关联标记'"`
}