123456789101112131415161718192021222324252627282930313233 |
- package pick
- import "zhiyuan/pkg/param/common"
- var OrderState = struct {
- Unfinished common.BaseWithColor
- Finished common.BaseWithColor
- Checked common.BaseWithColor
- }{
- Unfinished: common.BaseWithColor{1, "未完成", "gray-400"},
- Finished: common.BaseWithColor{2, "待审核", "blue-400"},
- Checked: common.BaseWithColor{3, "已审核", "green-400"},
- }
- var OrderAllow = struct {
- Delete []int
- Edit []int
- Check []int
- }{
- Delete: []int{OrderState.Unfinished.ID, OrderState.Finished.ID},
- Edit: []int{OrderState.Unfinished.ID, OrderState.Finished.ID},
- Check: []int{OrderState.Finished.ID},
- }
- var OrderParams = struct {
- State []common.BaseWithColor `json:"state"`
- }{
- State: []common.BaseWithColor{
- OrderState.Unfinished,
- OrderState.Finished,
- OrderState.Checked,
- },
- }
|