order.go 799 B

123456789101112131415161718192021222324252627282930313233
  1. package pick
  2. import "zhiyuan/pkg/param/common"
  3. var OrderState = struct {
  4. Unfinished common.BaseWithColor
  5. Finished common.BaseWithColor
  6. Checked common.BaseWithColor
  7. }{
  8. Unfinished: common.BaseWithColor{1, "未完成", "gray-400"},
  9. Finished: common.BaseWithColor{2, "待审核", "blue-400"},
  10. Checked: common.BaseWithColor{3, "已审核", "green-400"},
  11. }
  12. var OrderAllow = struct {
  13. Delete []int
  14. Edit []int
  15. Check []int
  16. }{
  17. Delete: []int{OrderState.Unfinished.ID, OrderState.Finished.ID},
  18. Edit: []int{OrderState.Unfinished.ID, OrderState.Finished.ID},
  19. Check: []int{OrderState.Finished.ID},
  20. }
  21. var OrderParams = struct {
  22. State []common.BaseWithColor `json:"state"`
  23. }{
  24. State: []common.BaseWithColor{
  25. OrderState.Unfinished,
  26. OrderState.Finished,
  27. OrderState.Checked,
  28. },
  29. }