serv_role_api.go 617 B

12345678910111213141516171819202122232425
  1. package model
  2. import model2 "Medical_OAuth/common/model"
  3. type ServRoleApi struct {
  4. model2.Model
  5. ServiceId int `json:"serviceId" gorm:"size:4;not null;comment:服务ID"` // 服务ID
  6. RoleKey string `json:"roleKey" gorm:"size:128;comment:角色编码"` // 角色编码
  7. ApiId int `json:"apiId" gorm:"size:128;comment:接口id"` // 接口id
  8. model2.ModelTime
  9. model2.ControlBy
  10. }
  11. func (ServRoleApi) TableName() string {
  12. return "serv_role_api"
  13. }
  14. func (e *ServRoleApi) Generate() model2.ActiveRecord {
  15. o := *e
  16. return &o
  17. }
  18. func (e *ServRoleApi) GetId() interface{} {
  19. return e.Id
  20. }