12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package model
- import (
- "time"
- )
- const (
-
- ControlTypeInput = "input"
-
- ControlTypeTextarea = "textarea"
-
- ControlTypeLink = "link"
-
- ControlTypeSelector = "selector"
-
- ControlTypeFile = "file"
-
- ControlPageSize = int(1000)
- )
- type Control struct {
- Cid int32 `gorm:"-" json:"-"`
- Tid int32 `gorm:"column:tid" json:"tid"`
- Weight int32 `gorm:"-" json:"-"`
- Name string `gorm:"column:name" json:"name"`
- Title string `gorm:"column:title" json:"title"`
- Component string `gorm:"column:component" json:"component"`
- Placeholder string `gorm:"column:placeholder" json:"placeholder"`
- Required bool `gorm:"column:required" json:"required"`
- CTime time.Time `gorm:"-" json:"-"`
- MTime time.Time `gorm:"-" json:"-"`
- }
- func (*Control) TableName() string {
- return "workflow_tag_control"
- }
- type Control3 struct {
- TID int64 `json:"tid"`
- BID int64 `json:"bid"`
- Name string `json:"name"`
- Title string `json:"title"`
- Component string `json:"component"`
- Placeholder string `json:"placeholder"`
- Required int64 `json:"required"`
- }
- type ResponseControl3 struct {
- Code int `json:"code"`
- Message string `json:"message"`
- TTL int32 `json:"ttl"`
- Data []*Control3 `json:"data"`
- }
|