Documentation ¶
Overview ¶
@Time : 2019-09-02 16:26 @Author : Frank @Email : frank@163.com @File : common.go @Software: GoLand
@Time : 2019-09-05 12:41 @Author : Frank @Email : frank@163.com @File : operate_quoted.go @Software: GoLand
@Time : 2019-09-02 16:25 @Author : Frank @Email : frank@163.com @File : quoted.go @Software: GoLand
Index ¶
- func CompareAttrAndAttrs(Attrs []models.TmpPurchaseAttr, tmpAttrs []*models.TmpPurchaseAttr) (result bool)
- func GetCatAttrValue(cat_id int) (data []interface{})
- func Getcat(type_data string) (code int, msg interface{}, response_data interface{}, err interface{})
- func UserGetcat(type_data string) (code int, msg interface{}, response_data interface{}, err interface{})
- type AdminController
- type AttrValueParam
- type CatController
- func (q *CatController) CheckTempUpdate()
- func (c *CatController) Delete()
- func (c *CatController) Get()
- func (c *CatController) GetAttrCat()
- func (c *CatController) GetAttrNameCat()
- func (c *CatController) GetCh()
- func (c *CatController) Post()
- func (c *CatController) Put()
- func (c *CatController) UserGet()
- type CommonController
- type GoodsAttr
- type OperateQuoted
- type Pagination
- type Quoted
- func (q *Quoted) BackstageEdit()
- func (q *Quoted) BackstageSubmit()
- func (q *Quoted) ChangeList()
- func (q *Quoted) ChangePurchaseDetail()
- func (q *Quoted) ChangePurchaseOwner()
- func (q *Quoted) ChangeQuoteOrderStatus()
- func (q *Quoted) Get()
- func (q *Quoted) GetPurchaseDetail()
- func (q *Quoted) GetUserPurchaseList()
- func (q *Quoted) GetUserPurchaseListNum()
- func (q *Quoted) OnAuditListNum()
- func (q *Quoted) OperationList()
- func (q *Quoted) Post()
- func (q *Quoted) PurchaseAudit()
- func (q *Quoted) PurchaseOrder()
- func (q *Quoted) Put()
- func (q *Quoted) RePublish()
- func (q *Quoted) UploadFileFromOrder()
- type Shop_controllers
- type TempParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAttrAndAttrs ¶
func CompareAttrAndAttrs(Attrs []models.TmpPurchaseAttr, tmpAttrs []*models.TmpPurchaseAttr) (result bool)
@Title compare the category info between request info and backstage info
func UserGetcat ¶
Types ¶
type AdminController ¶
type AdminController struct {
CommonController
}
func (*AdminController) Delete ¶
func (a *AdminController) Delete()
func (*AdminController) Get ¶
func (a *AdminController) Get()
func (*AdminController) GetList ¶
func (a *AdminController) GetList()
func (*AdminController) Post ¶
func (a *AdminController) Post()
func (*AdminController) Put ¶
func (a *AdminController) Put()
type AttrValueParam ¶
type CatController ¶
type CatController struct {
CommonController
}
func (*CatController) CheckTempUpdate ¶
func (q *CatController) CheckTempUpdate()
@Title 查询分类模板是否已修改
func (*CatController) Delete ¶
func (c *CatController) Delete()
func (*CatController) Get ¶
func (c *CatController) Get()
func (*CatController) GetAttrCat ¶
func (c *CatController) GetAttrCat()
func (*CatController) GetCh ¶
func (c *CatController) GetCh()
func (*CatController) Post ¶
func (c *CatController) Post()
func (*CatController) Put ¶
func (c *CatController) Put()
func (*CatController) UserGet ¶
func (c *CatController) UserGet()
type CommonController ¶
type CommonController struct { beego.Controller Pagination }
定义通用结构体
func (*CommonController) Finish ¶
func (c *CommonController) Finish()
func (*CommonController) GetPagination ¶
func (c *CommonController) GetPagination()
func (*CommonController) Prepare ¶
func (c *CommonController) Prepare()
func (*CommonController) ResponseData ¶
func (c *CommonController) ResponseData(code int, msg interface{}, data interface{})
func (*CommonController) Validate ¶
func (c *CommonController) Validate(obj interface{}) (b bool, msg []string)
参数校验,入参必须为结构体或结构体指针
type GoodsAttr ¶
type GoodsAttr struct {
CommonController
}
属性结构体
func (*GoodsAttr) CatAttrTmp ¶
func (this *GoodsAttr) CatAttrTmp()
type OperateQuoted ¶
type OperateQuoted struct {
CommonController
}
func (*OperateQuoted) Post ¶
func (this *OperateQuoted) Post()
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
type Quoted ¶
type Quoted struct {
CommonController
}
func (*Quoted) ChangePurchaseDetail ¶
func (q *Quoted) ChangePurchaseDetail()
@Title change purchase detail
func (*Quoted) ChangePurchaseOwner ¶
func (q *Quoted) ChangePurchaseOwner()
@Title change purchase owner
func (*Quoted) ChangeQuoteOrderStatus ¶
func (q *Quoted) ChangeQuoteOrderStatus()
@Title change purchase status
func (*Quoted) GetUserPurchaseList ¶
func (q *Quoted) GetUserPurchaseList()
@Title purchase list in user center
func (*Quoted) GetUserPurchaseListNum ¶
func (q *Quoted) GetUserPurchaseListNum()
@Title purchase count in user center
func (*Quoted) OnAuditListNum ¶
func (q *Quoted) OnAuditListNum()
@Title get the count of on auditing purchase
func (*Quoted) OperationList ¶
func (q *Quoted) OperationList()
@Title get purchase list in operation backstage
func (*Quoted) PurchaseOrder ¶
func (q *Quoted) PurchaseOrder()
@Title update order info to purchase from order
func (*Quoted) UploadFileFromOrder ¶
func (q *Quoted) UploadFileFromOrder()
@Title change document file from order
type Shop_controllers ¶
type Shop_controllers struct {
CommonController
}
func (*Shop_controllers) Get ¶
func (s *Shop_controllers) Get()
func (*Shop_controllers) GetContent ¶
func (s *Shop_controllers) GetContent()
func (*Shop_controllers) HistoryList ¶
func (s *Shop_controllers) HistoryList()
func (*Shop_controllers) Post ¶
func (s *Shop_controllers) Post()
func (*Shop_controllers) Put ¶
func (s *Shop_controllers) Put()