controllers

package
v0.0.0-...-c3a65a0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommentPageData

func GetCommentPageData(rawData []models.NideshopComment, page int, size int) utils.PageData

It may need to be refactored.

func GetOrderPageData

func GetOrderPageData(rawData []models.NideshopOrder, page int, size int) utils.PageData

It may need to be refactored.

Types

type AddorDeleteRtnJson

type AddorDeleteRtnJson struct {
	HandleType string
}

type AddressController

type AddressController struct {
	beego.Controller
}

func (*AddressController) Address_Delete

func (this *AddressController) Address_Delete()

func (*AddressController) Address_Detail

func (this *AddressController) Address_Detail()

func (*AddressController) Address_List

func (this *AddressController) Address_List()

func (*AddressController) Address_Save

func (this *AddressController) Address_Save()

type AddressListRtnJson

type AddressListRtnJson struct {
	models.NideshopAddress
	ProviceName  string `json:"provice_name"`
	CityName     string `json:"city_name"`
	DistrictName string `json:"district_name"`
	FullRegion   string `json:"full_region"`
}

type AddressSaveBody

type AddressSaveBody struct {
	Address    string `json:"address"`
	CityId     int    `json:"city_id"`
	DistrictId int    `json:"district_id"`
	IsDefault  bool   `json:"is_default"`
	Mobile     string `json:"mobile"`
	Name       string `json:"name"`
	ProvinceId int    `json:"province_id"`
	AddressId  int    `json:"address_id"`
}

type Attribute

type Attribute struct {
	Value string `json:"value"`
	Name  string `json:"name"`
}

type AuthController

type AuthController struct {
	beego.Controller
}

func (*AuthController) Auth_LoginByWeixin

func (this *AuthController) Auth_LoginByWeixin()

type AuthLoginBody

type AuthLoginBody struct {
	Code     string               `json:"code"`
	UserInfo services.ResUserInfo `json:"userInfo"`
}
type Banner struct {
	Url     string `json:"url"`
	Name    string `json:"name"`
	Img_url string `json:"imgurl"`
}

type BrandController

type BrandController struct {
	beego.Controller
}

func (*BrandController) Brand_Detail

func (this *BrandController) Brand_Detail()

func (*BrandController) Brand_List

func (this *BrandController) Brand_List()

type BrandDetailRtnJson

type BrandDetailRtnJson struct {
	Data models.NideshopBrand
}

type CartAddBody

type CartAddBody struct {
	GoodsId   int `json:"goodsId"`
	ProductId int `json:"productId"`
	Number    int `json:"number"`
}

type CartAddress

type CartAddress struct {
	models.NideshopAddress
	ProvinceName string `json:"province_name"`
	CityName     string `json:"city_name"`
	DistrictName string `json:"district_name"`
	FullRegion   string `json:"full_region"`
}

type CartCheckedBody

type CartCheckedBody struct {
	IsChecked  int         `json:"isChecked"`
	ProductIds interface{} `json:"productIds"`
}

type CartController

type CartController struct {
	beego.Controller
}

func (*CartController) Cart_Add

func (this *CartController) Cart_Add()

func (*CartController) Cart_Checked

func (this *CartController) Cart_Checked()

func (*CartController) Cart_Checkout

func (this *CartController) Cart_Checkout()

func (*CartController) Cart_Delete

func (this *CartController) Cart_Delete()

func (*CartController) Cart_GoodsCount

func (this *CartController) Cart_GoodsCount()

func (*CartController) Cart_Index

func (this *CartController) Cart_Index()

func (*CartController) Cart_Update

func (this *CartController) Cart_Update()

type CartDeleteBody

type CartDeleteBody struct {
	ProductIds string `json:"productIds"`
}

type CartTotal

type CartTotal struct {
	GoodsCount         int     `json:"goodsCount"`
	GoodsAmount        float64 `json:"goodsAmount"`
	CheckedGoodsCount  int     `json:"checkedGoodsCount"`
	CheckedGoodsAmount float64 `json:"checkedGoodsAmount"`
}

type CartUpdateBody

type CartUpdateBody struct {
	GoodsId   int `json:"goodsId"`
	ProductId int `json:"productId"`
	Number    int `json:"number"`
	Id        int `json:"id"`
}

type CatalogController

type CatalogController struct {
	beego.Controller
}

func (*CatalogController) Catalog_Current

func (this *CatalogController) Catalog_Current()

func (*CatalogController) Catalog_Index

func (this *CatalogController) Catalog_Index()

type CateLogCurRtnJson

type CateLogCurRtnJson struct {
	CurrentCategory CurCategory `json:"currentCategory"`
}

type CateLogIndexRtnJson

type CateLogIndexRtnJson struct {
	CategoryList    []models.NideshopCategory `json:"categoryList"`
	CurrentCategory CurCategory               `json:"currentCategory"`
}

type CategoryRtnJson

type CategoryRtnJson struct {
	CurCategory     models.NideshopCategory   `json:"currentCategory"`
	ParentCategory  models.NideshopCategory   `json:"parentCategory"`
	BrotherCategory []models.NideshopCategory `json:"brotherCategory"`
}

type CheckoutRtnJson

type CheckoutRtnJson struct {
	Address          CartAddress                 `json:"checkedAddress"`
	FreightPrice     float64                     `json:"freightPrice"`
	CheckedCoupon    []models.NideshopUserCoupon `json:"checkedCoupon"`
	CouponList       []models.NideshopUserCoupon `json:"couponList"`
	CouponPrice      float64                     `json:"couponPrice"`
	CheckedGoodsList []models.NideshopCart       `json:"checkedGoodsList"`
	GoodsTotalPrice  float64                     `json:"goodsTotalPrice"`
	OrderTotalPrice  float64                     `json:"orderTotalPrice"`
	ActualPrice      float64                     `json:"actualPrice"`
}

type CollectController

type CollectController struct {
	beego.Controller
}

func (*CollectController) Collect_AddorDelete

func (this *CollectController) Collect_AddorDelete()

func (*CollectController) Collect_List

func (this *CollectController) Collect_List()

type CollectListRtnJson

type CollectListRtnJson struct {
	models.NideshopCollect
	ListPicUrl  string  `json:"list_pic_url"`
	GoodsBrief  string  `json:"goods_brief"`
	RetailPrice float64 `json:"retail_price"`
}

type CommenListtRtnJson

type CommenListtRtnJson struct {
	Comment  string
	TypeId   int
	ValueId  int
	Id       int
	AddTime  string
	UserInfo orm.Params
	PicList  []models.NideshopCommentPicture
}

type Comment

type Comment struct {
	Count int64       `json:"count"`
	Data  CommentInfo `json:"data"`
}

type CommentController

type CommentController struct {
	beego.Controller
}

func (*CommentController) Comment_Count

func (this *CommentController) Comment_Count()

func (*CommentController) Comment_List

func (this *CommentController) Comment_List()

func (*CommentController) Comment_Post

func (this *CommentController) Comment_Post()

type CommentCountRtnJson

type CommentCountRtnJson struct {
	AllCount    int64
	HasPicCount int
}

type CommentInfo

type CommentInfo struct {
	Content  string                          `json:"content"`
	AddTime  int64                           `json:"add_time"`
	NickName string                          `json:"nick_name"`
	Avatar   string                          `json:"avatar"`
	PicList  []models.NideshopCommentPicture `json:"pic_list"`
}

type CommentUser

type CommentUser struct {
	NickName string `json:"nick_name"`
	UserName string `json:"user_name"`
	Avatar   string `json:"avatar"`
}

type CountRtnJson

type CountRtnJson struct {
	GoodsCount int64 `json:"goodsCount"`
}

type CurCategory

type CurCategory struct {
	models.NideshopCategory
	SubCategoryList []models.NideshopCategory `json:"subCategoryList"`
}

type DetailRtnJson

type DetailRtnJson struct {
	SkuRtnJson
	Goods          models.NideshopGoods          `json:"info"`
	Galleries      []models.NideshopGoodsGallery `json:"gallery"`
	Attribute      []Attribute                   `json:"attribute"`
	Issues         []models.NideshopGoodsIssue   `json:"issue"`
	UserHasCollect int                           `json:"userHasCollect"`
	Comment        Comment                       `json:"comment"`
	Brand          models.NideshopBrand          `json:"brand"`
}

type FilterCategory

type FilterCategory struct {
	Id      int64  `json:"id"`
	Name    string `json:"name"`
	Checked bool   `json:"checked"`
}

type FootprintController

type FootprintController struct {
	beego.Controller
}

func (*FootprintController) Footprint_Delete

func (this *FootprintController) Footprint_Delete()

func (*FootprintController) Footprint_List

func (this *FootprintController) Footprint_List()

type FootprintListRtnJson

type FootprintListRtnJson struct {
	models.NideshopFootprint
	Name          string
	ListPicUrl    string
	GoodsBrief    string
	RetailPrice   float64
	AddTimeString string
}

type GoodsController

type GoodsController struct {
	beego.Controller
}

func (*GoodsController) Goods_Category

func (this *GoodsController) Goods_Category()

func (*GoodsController) Goods_Count

func (this *GoodsController) Goods_Count()

func (*GoodsController) Goods_Detail

func (this *GoodsController) Goods_Detail()

func (*GoodsController) Goods_Filter

func (this *GoodsController) Goods_Filter()

func (*GoodsController) Goods_Hot

func (this *GoodsController) Goods_Hot()

func (*GoodsController) Goods_Index

func (this *GoodsController) Goods_Index()

func (*GoodsController) Goods_List

func (this *GoodsController) Goods_List()

func (*GoodsController) Goods_New

func (this *GoodsController) Goods_New()
func (this *GoodsController) Goods_Related()

func (*GoodsController) Goods_Sku

func (this *GoodsController) Goods_Sku()

type GoodsCount

type GoodsCount struct {
	CartTotal CartTotal `json:"cartTotal"`
}

type GoodsSpecifition

type GoodsSpecifition struct {
	models.NideshopGoodsSpecification
	Name string
}

type HotRtnJson

type HotRtnJson struct {
	BannerInfo Banner `json:"bannerinfo"`
}

type IndexCartData

type IndexCartData struct {
	CartList  []models.NideshopCart `json:"cartList"`
	CartTotal CartTotal             `json:"cartTotal"`
}

type IndexController

type IndexController struct {
	beego.Controller
}

func (*IndexController) Index_Index

func (this *IndexController) Index_Index()

type IndexRtnJson

type IndexRtnJson struct {
	Banners      []models.NideshopAd      `json:"banner"`
	Channels     []models.NideshopChannel `json:"channel"`
	Newgoods     []orm.Params             `json:"newGoodsList"`
	Hotgoods     []orm.Params             `json:"hotGoodsList"`
	BrandList    []models.NideshopBrand   `json:"brandList"`
	TopicList    []models.NideshopTopic   `json:"topicList"`
	CategoryList []newCategoryList        `json:"categoryList"`
}

type ListRtnJson

type ListRtnJson struct {
	utils.PageData
	FilterCategories []FilterCategory `json:"filterCategory"`
	GoodsList        []orm.Params     `json:"goodsList"`
}

type NewRtnJson

type NewRtnJson struct {
	BannerInfo Banner `json:"bannerinfo"`
}

type OrderController

type OrderController struct {
	beego.Controller
}

func (*OrderController) Order_Detail

func (this *OrderController) Order_Detail()

func (*OrderController) Order_Express

func (this *OrderController) Order_Express()

func (*OrderController) Order_List

func (this *OrderController) Order_List()

func (*OrderController) Order_Submit

func (this *OrderController) Order_Submit()

type OrderDetailRtnJson

type OrderDetailRtnJson struct {
	OrderInfo    OrderInfo                   `json:"orderInfo"`
	OrderGoods   []models.NideshopOrderGoods `json:"orderGoods"`
	HandleOption models.OrderHandleOption    `json:"handleOption"`
}

type OrderInfo

type OrderInfo struct {
	models.NideshopOrder
	ProvinceName        string                  `json:"province_name"`
	CityName            string                  `json:"city_name"`
	DistrictName        string                  `json:"district_name"`
	FullRegion          string                  `json:"full_region"`
	Express             services.ExpressRtnInfo `json:"express"`
	OrderStatusText     string                  `json:"order_status_text"`
	FormatAddTime       string                  `json:"add_time"`
	FormatFinalPlayTime string                  `json:"final_pay_time"`
}

type OrderListRtnJson

type OrderListRtnJson struct {
	models.NideshopOrder
	GoodsList       []models.NideshopOrderGoods `json:"goodList"`
	GoodsCount      int                         `json:"goodsCount"`
	OrderStatusText string                      `json:"order_status_text"`
	HandOption      models.OrderHandleOption    `json:"handleOption"`
}

type PayController

type PayController struct {
	beego.Controller
}

func (*PayController) Pay_Prepay

func (this *PayController) Pay_Prepay()

type RegionController

type RegionController struct {
	beego.Controller
}

func (*RegionController) Region_Info

func (this *RegionController) Region_Info()

func (*RegionController) Region_List

func (this *RegionController) Region_List()

type SearchController

type SearchController struct {
	beego.Controller
}

func (*SearchController) Search_Clearhistory

func (this *SearchController) Search_Clearhistory()

func (*SearchController) Search_Helper

func (this *SearchController) Search_Helper()

func (*SearchController) Search_Index

func (this *SearchController) Search_Index()

type SearchIndexRtnJson

type SearchIndexRtnJson struct {
	DefaultKeyword     models.NideshopKeywords `json:"defaultKeyword"`
	HistoryKeyworkList []string                `json:"historyKeywordList"`
	HotKeywordList     []orm.Params            `json:"hotKeywordList"`
}

type SkuRtnJson

type SkuRtnJson struct {
	ProductList       []models.NideshopProduct   `json:"productList"`
	SpecificationList []models.SpecificationItem `json:"specificationList"`
}

type TopicController

type TopicController struct {
	beego.Controller
}

func (*TopicController) Topic_Detail

func (this *TopicController) Topic_Detail()

func (*TopicController) Topic_List

func (this *TopicController) Topic_List()
func (this *TopicController) Topic_Related()

Jump to

Keyboard shortcuts

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