package proto import ( "service/api/base" "service/dbstruct" ) // 创建2级分类顺序 type OpSetL2CatalogIndexReq struct { List []*dbstruct.L2CatalogIndex `json:"list"` } type OpSetL2CatalogIndexData struct{} type OpSetL2CatalogIndexResp struct { base.BaseResponse Data *OpSetL2CatalogIndexData `json:"data"` } // 获取二级分类排序 by l1_id type OpGetL2CatalogIndexByL1IdReq struct { L1Id int64 `json:"l1_id"` } type OpGetL2CatalogIndexByL1IdData struct { List []*dbstruct.L2CatalogIndex `json:"list"` } type OpGetL2CatalogIndexByL1IdResp struct { base.BaseResponse Data *OpGetL2CatalogIndexByL1IdData `json:"data"` } // 获取二级分类list by l1_id type GetL2CatalogListByL1IdReq struct { L1Id int64 `json:"l1_id"` } type GetL2CatalogListByL1IdData struct { List []*dbstruct.Catalog `json:"list"` } type GetL2CatalogListByL1IdResp struct { base.BaseResponse Data *GetL2CatalogListByL1IdData `json:"data"` } // 创建banner顺序 type OpSetBannerIndexReq struct { List []*dbstruct.BannerIndex `json:"list"` } type OpSetBannerIndexData struct{} type OpSetBannerIndexResp struct { base.BaseResponse Data *OpSetBannerIndexData `json:"data"` } // 获取二级分类排序 by l1_id type OpGetBannerIndexReq struct{} type OpGetBannerIndexData struct { List []*dbstruct.BannerIndex `json:"list"` } type OpGetBannerIndexResp struct { base.BaseResponse Data *OpGetBannerIndexData `json:"data"` } // 获取banner list type GetBannerListReq struct { L1Id int64 `json:"l1_id"` } type GetBannerListData struct { List []*dbstruct.Banner `json:"list"` } type GetBannerListResp struct { base.BaseResponse Data *GetBannerListData `json:"data"` }