jyapi_api.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ==========================================================================
  2. // GFast自动生成model代码,无需手动修改,重新生成会自动覆盖.
  3. // 生成日期:2023-12-04 08:46:15
  4. // 生成路径: gfast/app/gen/model/jyapi_api.go
  5. // 生成人:ren
  6. // ==========================================================================
  7. package model
  8. import (
  9. "github.com/gogf/gf/v2/os/gtime"
  10. "github.com/gogf/gf/v2/util/gmeta"
  11. )
  12. // JyapiApi is the golang structure for table jyapi_api.
  13. type JyapiApi struct {
  14. gmeta.Meta `orm:"table:jyapi_api"`
  15. Id int `orm:"id,primary" json:"id"` // id
  16. Groupid int `orm:"groupid" json:"groupid"` // 分组
  17. Name string `orm:"name" json:"name"` // 名称
  18. Path string `orm:"path" json:"path"` // 路径
  19. Method string `orm:"method" json:"method"` // 方法
  20. Code string `orm:"code" json:"code"` // 代码
  21. Parameters string `orm:"parameters" json:"parameters"` // 参数json
  22. CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
  23. UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
  24. CreatedBy int64 `orm:"created_by" json:"createdBy"` // 创建人
  25. UpdatedBy int64 `orm:"updated_by" json:"updatedBy"` // 更新人
  26. Description string `orm:"description" json:"description"` // 描述
  27. Headers string `orm:"headers" json:"headers"` // 请求头
  28. Options string `orm:"options" json:"options"` // 可选项
  29. Status int `orm:"status" json:"status"` // 状态
  30. LinkedJyapiApiJyapiGroup *LinkedJyapiApiJyapiGroup `orm:"with:id=groupid" json:"linkedJyapiApiJyapiGroup"`
  31. }
  32. type LinkedJyapiApiJyapiGroup struct {
  33. gmeta.Meta `orm:"table:jyapi_group"`
  34. Id int `orm:"id" json:"id"` // id
  35. Name string `orm:"name" json:"name"` // 名称
  36. //增加嵌套关联!
  37. }