package repository import ( "context" ) type AppOperConfig struct { Id uint64 `gorm:"primary_key;column:id;type:BIGINT(16) AUTO_INCREMENT;comment:'自增id'" sql:"auto_increment;primary_key"` AutoReviewApp int `json:"autoReviewApp" bson:"auto_review_app" gorm:"column:auto_review_app;type:tinyint(4);comment:"是否自动审核小程序"` CreateTime int64 `json:"createTime" bson:"create_time" gorm:"column:create_time;type:BIGINT(16);NOT NULL;comment:'创建时间'"` //创建时间 UpdateTime int64 `json:"updateTime" bson:"update_time" gorm:"column:update_time;type:BIGINT(16);default:0;comment:'更新时间'"` //更新时间 } func (AppOperConfig) TableName() string { return "app_oper_config" } type IAppOperConfigRepo interface { Insert(ctx context.Context, item AppOperConfig) error Update(ctx context.Context, item AppOperConfig) error Find(ctx context.Context) (AppOperConfig, error) }