controllers

package
v0.0.0-...-c4624cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

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

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 GetCatAttrValue

func GetCatAttrValue(cat_id int) (data []interface{})

根据分类id返回属性和属性值

func Getcat

func Getcat(type_data string) (code int, msg interface{}, response_data interface{}, err interface{})

func UserGetcat

func UserGetcat(type_data string) (code int, msg interface{}, response_data interface{}, err interface{})

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 AttrValueParam struct {
	AttrValue []struct {
		AttrID int `json:"attr_id"`
		IsMust int `json:"is_must"`
	} `json:"attr_value"`
	CategoryName string `json:"category_name"`
	Remark       string `json:"remark"`
	Unit         string `json:"unit"`
	CategoryID   int    `json:"category_id"`
}

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) GetAttrNameCat

func (c *CatController) GetAttrNameCat()

通过属性名字搜索分类

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()

func (*GoodsAttr) Get

func (this *GoodsAttr) Get()

属性名联想

func (*GoodsAttr) Put

func (this *GoodsAttr) Put()

属性上下排序

type OperateQuoted

type OperateQuoted struct {
	CommonController
}

func (*OperateQuoted) Delete

func (this *OperateQuoted) Delete()

模板属性删除接口

func (*OperateQuoted) Get

func (this *OperateQuoted) Get()

模板查询接口

func (*OperateQuoted) Post

func (this *OperateQuoted) Post()

func (*OperateQuoted) Put

func (this *OperateQuoted) Put()

模板修改接口

type Pagination

type Pagination struct {
	// contains filtered or unexported fields
}

type Quoted

type Quoted struct {
	CommonController
}

func (*Quoted) BackstageEdit

func (q *Quoted) BackstageEdit()

@Title backstage edit save

func (*Quoted) BackstageSubmit

func (q *Quoted) BackstageSubmit()

@Title backstage edit submit

func (*Quoted) ChangeList

func (q *Quoted) ChangeList()

@Title change owner log

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) Get

func (q *Quoted) Get()

@Title get purchase info for edit and republish

func (*Quoted) GetPurchaseDetail

func (q *Quoted) GetPurchaseDetail()

@Title get purchase detail

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) Post

func (q *Quoted) Post()

@Title create purchase

func (*Quoted) PurchaseAudit

func (q *Quoted) PurchaseAudit()

@Title audit purchase

func (*Quoted) PurchaseOrder

func (q *Quoted) PurchaseOrder()

@Title update order info to purchase from order

func (*Quoted) Put

func (q *Quoted) Put()

@Title edit purchase

func (*Quoted) RePublish

func (q *Quoted) RePublish()

@Title republish purchase

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()

type TempParam

type TempParam struct {
	AttrID       []int  `json:"attr_id"`
	CatID        int    `json:"cat_id"`
	CateGoryName string `json:"category_name"`
	Remark       string `json:"remark"`
	Unit         string `json:"unit"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL