MgAdmin.go 689 B

123456789101112131415161718192021222324
  1. package ywtcenter
  2. import "github.com/astaxie/beego/orm"
  3. type MgAdmin struct {
  4. Id int16 `orm:"column(id);pk"` // 设置主键 // '管理员表,主键ID',
  5. Account string // '账号',
  6. Password string // '密码',
  7. NickName string // '昵称',
  8. Code string // '编号(备用)',
  9. Remarks string // '备注',
  10. State string // -正常)',
  11. Createon string // '创建时间',
  12. Type string // '类型,保留字段',
  13. Data string // '存放各种数据',
  14. ModuleIds string // '模板IDs',
  15. UserId int16 // '用户ID',
  16. AddType int16 // -药师,',
  17. }
  18. func init() {
  19. // 需要在init中注册定义的model
  20. orm.RegisterModel(new(MgAdmin))
  21. }