/
req.go
42 lines (36 loc) · 1.02 KB
/
req.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package admincom
import (
"github.com/i2eco/egoshop/appgo/model/mysql"
"github.com/i2eco/egoshop/appgo/model/trans"
)
type ReqList struct {
Name string `form:"name"`
Author string `form:"author"`
Address string `form:"address"`
trans.ReqPage
}
type ReqCreateOrUpdate struct {
Id int `json:"id"`
Title string `json:"title"`
SubTitle string `json:"subTitle"`
Gallery []string `json:"gallery"`
SaleTime string `json:"saleTime"`
Cids []string `json:"cids"`
SkuList []mysql.ComSku `json:"skuList"`
FreightFee float64 `json:"freightFee"` // 运费
FreightId int `json:"freightId"` // 运费模板id
}
type ReqUpdate struct {
Id int `json:"id"`
Cid int `json:"cid"`
Title string `json:"title"`
SubTitle string `json:"subTitle"`
Gallery []string `json:"gallery"`
SaleTime string `json:"saleTime"`
}
type ReqRemove struct {
Id int `json:"id"`
}
type ReqOnSale struct {
Ids []int `json:"ids"`
}