16 lines
618 B
Go
16 lines
618 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type WechatEvent struct {
|
|
ID uint `gorm:"primarykey"`
|
|
ToUserName string `gorm:"column:to_username;type:varchar(50);not null;comment:微信openid"`
|
|
FromUserName string `gorm:"column:from_username;type:varchar(30);not null;comment:微信服务号APPID"`
|
|
EventType string `gorm:"column:event_type;type:varchar(30);comment:事件类型"` //事件类型
|
|
EventTime time.Time `gorm:"column:event_time"`
|
|
EventKey string `gorm:"column:event_key;type:varchar(50);not null;index;comment:事件key"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
}
|