by.go 292 B

1234567891011121314
  1. package models
  2. type ControlBy struct {
  3. CreateBy uint `gorm:"index;comment:'创建者'"`
  4. UpdateBy uint `gorm:"index;comment:'更新者'"`
  5. }
  6. func (e *ControlBy) SetCreateBy(createBy uint) {
  7. e.CreateBy = createBy
  8. }
  9. func (e *ControlBy) SetUpdateBy(updateBy uint) {
  10. e.UpdateBy = updateBy
  11. }