serv_api.go 393 B

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