30 lines
623 B
Go
30 lines
623 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type ModelO struct {
|
|
ID int `gorm:"primary_key"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt *time.Time `sql:"index"`
|
|
LastOperator string `gorm:"type:varchar(32)"` // 最后操作员
|
|
}
|
|
|
|
type ModelIDCU struct {
|
|
ID int `gorm:"primary_key"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type ModelIDCUO struct {
|
|
ID int `gorm:"primary_key"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
LastOperator string `gorm:"type:varchar(32)"` // 最后操作员
|
|
}
|
|
|
|
type CallResult struct {
|
|
Code int `json:"code"`
|
|
Result string `json:"result"`
|
|
}
|