role_api.go 446 B

1234567891011121314151617181920212223242526
  1. package models
  2. import (
  3. model2 "Medical_ERP/common/model"
  4. coreModel "gogs.baozhida.cn/zoie/OAuth-core/model"
  5. )
  6. type RoleApi struct {
  7. model2.Model
  8. coreModel.BeegoApi
  9. model2.ModelTime `swaggerignore:"true"`
  10. model2.ControlBy `swaggerignore:"true"`
  11. }
  12. func (e *RoleApi) TableName() string {
  13. return "role_api"
  14. }
  15. func (e *RoleApi) Generate() model2.ActiveRecord {
  16. o := *e
  17. return &o
  18. }
  19. func (e *RoleApi) GetId() interface{} {
  20. return e.Id
  21. }