business.go 917 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package manager
  2. import "go-common/app/admin/main/workflow/model"
  3. // Meta business meta
  4. // http://info.bilibili.co/pages/viewpage.action?pageId=9846887
  5. type Meta struct {
  6. ID int `json:"id"`
  7. PID int `json:"pid"`
  8. Name string `json:"name"`
  9. Flow int `json:"flow"`
  10. FlowState int `json:"flow_state"`
  11. State int `json:"state"`
  12. FlowChild []*Flow `json:"flowchild"`
  13. }
  14. // Flow is child flow meta
  15. type Flow struct {
  16. FlowState int `json:"flow_state"`
  17. Child []*Meta `json:"child"`
  18. }
  19. // ListResponse .
  20. type ListResponse struct {
  21. *model.CommonResponse
  22. Data []*Meta `json:"data"`
  23. }
  24. // Role .
  25. type Role struct {
  26. ID int `json:"id"`
  27. Bid int8 `json:"bid"`
  28. Rid int8 `json:"rid"`
  29. Name string `json:"name"`
  30. Type int `json:"type"`
  31. State int `json:"state"`
  32. }
  33. // RoleResponse .
  34. type RoleResponse struct {
  35. *model.CommonResponse
  36. Data []*Role
  37. }