follow

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FollowByPinAndVid

func FollowByPinAndVid(req *FollowByPinAndVidRequest) (bool, error)

func FollowProduct

func FollowProduct(req *FollowProductRequest) (bool, error)

TODO 通过pin将商品加入用户关注栏

func IsFollowByPinAndVid

func IsFollowByPinAndVid(req *IsFollowByPinAndVidRequest) (bool, error)

func QueryForCountByVid

func QueryForCountByVid(req *QueryForCountByVidRequest) (uint64, error)

Types

type FollowByPinAndVidData

type FollowByPinAndVidData struct {
	Code   string                   `json:"code,omitempty" codec:"code,omitempty"`
	Result *FollowByPinAndVidResult `json:"followbypinandvid_result,omitempty" codec:"followbypinandvid_result,omitempty"`
}

type FollowByPinAndVidRequest

type FollowByPinAndVidRequest struct {
	api.BaseRequest
	Pin    string `json:"pin,omitempty" codec:"pin,omitempty"`         //
	ShopId uint64 `json:"shop_id,omitempty" codec:"shop_id,omitempty"` // 自定义返回字段
}

type FollowByPinAndVidResponse

type FollowByPinAndVidResponse struct {
	ErrorResp *api.ErrorResponnse    `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *FollowByPinAndVidData `` /* 146-byte string literal not displayed */
}

type FollowByPinAndVidResult

type FollowByPinAndVidResult struct {
	Data bool   `json:"data,omitempty" codec:"data,omitempty"`
	Code string `json:"code,omitempty" codec:"code,omitempty"`
}

type FollowProductData

type FollowProductData struct {
	Result *FollowProductResult `json:"follow_result,omitempty" codec:"follow_result,omitempty"`
	Code   string               `json:"code"`
}

type FollowProductRequest

type FollowProductRequest struct {
	api.BaseRequest
	Pin       string `json:"pin,omitempty" codec:"pin,omitempty"`             //加密pin
	ProductId uint64 `json:"productId,omitempty" codec:"productId,omitempty"` //skuid
}

type FollowProductResponse

type FollowProductResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *FollowProductData  `` /* 142-byte string literal not displayed */
}

type FollowProductResult

type FollowProductResult struct {
	Msg  string `json:"msg,omitempty" codec:"msg,omitempty"`
	Code string `json:"code,omitempty" codec:"code,omitempty"` //状态码
	Data bool   `json:"data,omitempty" codec:"data,omitempty"` //是否成功
}

type IsFollowByPinAndVidData

type IsFollowByPinAndVidData struct {
	Code   string                     `json:"code,omitempty" codec:"code,omitempty"`
	Result *IsFollowByPinAndVidResult `json:"isfollowbypinandvid_result,omitempty" codec:"isfollowbypinandvid_result,omitempty"`
}

type IsFollowByPinAndVidRequest

type IsFollowByPinAndVidRequest struct {
	api.BaseRequest
	Pin    string `json:"pin,omitempty" codec:"pin,omitempty"`         //
	ShopId uint64 `json:"shop_id,omitempty" codec:"shop_id,omitempty"` // 自定义返回字段
}

type IsFollowByPinAndVidResponse

type IsFollowByPinAndVidResponse struct {
	ErrorResp *api.ErrorResponnse      `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *IsFollowByPinAndVidData `` /* 148-byte string literal not displayed */
}

type IsFollowByPinAndVidResult

type IsFollowByPinAndVidResult struct {
	Data bool   `json:"data,omitempty" codec:"data,omitempty"`
	Code string `json:"code,omitempty" codec:"code,omitempty"`
}

type QueryForCountByVidData

type QueryForCountByVidData struct {
	Code   string                    `json:"code,omitempty" codec:"code,omitempty"`
	Result *QueryForCountByVidResult `json:"queryforcountbyvid_result,omitempty" codec:"queryforcountbyvid_result,omitempty"`
}

type QueryForCountByVidRequest

type QueryForCountByVidRequest struct {
	api.BaseRequest
	ShopId uint64
}

type QueryForCountByVidResponse

type QueryForCountByVidResponse struct {
	ErrorResp *api.ErrorResponnse     `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *QueryForCountByVidData `` /* 146-byte string literal not displayed */
}

type QueryForCountByVidResult

type QueryForCountByVidResult struct {
	Code string `json:"code,omitempty" codec:"code,omitempty"`
	Data uint64 `json:"data,omitempty" codec:"data,omitempty"`
	Msg  string `json:"msg,omitempty" codec:"msg,omitempty"`
}

Jump to

Keyboard shortcuts

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