Documentation ¶
Index ¶
- func FollowByPinAndVid(ctx context.Context, req *FollowByPinAndVidRequest) (bool, error)
- func FollowProduct(ctx context.Context, req *FollowProductRequest) (bool, error)
- func IsFollowByPinAndVid(ctx context.Context, req *IsFollowByPinAndVidRequest) (bool, error)
- func QueryForCountByVid(ctx context.Context, req *QueryForCountByVidRequest) (uint64, error)
- type FollowByPinAndVidData
- type FollowByPinAndVidRequest
- type FollowByPinAndVidResponse
- type FollowByPinAndVidResult
- type FollowProductData
- type FollowProductRequest
- type FollowProductResponse
- type FollowProductResult
- type IsFollowByPinAndVidData
- type IsFollowByPinAndVidRequest
- type IsFollowByPinAndVidResponse
- type IsFollowByPinAndVidResult
- type QueryForCountByVidData
- type QueryForCountByVidRequest
- type QueryForCountByVidResponse
- type QueryForCountByVidResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FollowByPinAndVid ¶
func FollowByPinAndVid(ctx context.Context, req *FollowByPinAndVidRequest) (bool, error)
func FollowProduct ¶
func FollowProduct(ctx context.Context, req *FollowProductRequest) (bool, error)
TODO 通过pin将商品加入用户关注栏
func IsFollowByPinAndVid ¶
func IsFollowByPinAndVid(ctx context.Context, req *IsFollowByPinAndVidRequest) (bool, error)
func QueryForCountByVid ¶
func QueryForCountByVid(ctx context.Context, 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"` }
func (FollowByPinAndVidData) Error ¶ added in v1.1.1
func (r FollowByPinAndVidData) Error() string
func (FollowByPinAndVidData) IsError ¶ added in v1.1.1
func (r FollowByPinAndVidData) IsError() bool
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 */ }
func (FollowByPinAndVidResponse) Error ¶ added in v1.1.1
func (r FollowByPinAndVidResponse) Error() string
func (FollowByPinAndVidResponse) IsError ¶ added in v1.1.1
func (r FollowByPinAndVidResponse) IsError() bool
type FollowByPinAndVidResult ¶
type FollowProductData ¶
type FollowProductData struct { Result *FollowProductResult `json:"follow_result,omitempty" codec:"follow_result,omitempty"` Code string `json:"code"` }
func (FollowProductData) Error ¶ added in v1.1.1
func (r FollowProductData) Error() string
func (FollowProductData) IsError ¶ added in v1.1.1
func (r FollowProductData) IsError() bool
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 */ }
func (FollowProductResponse) Error ¶ added in v1.1.1
func (r FollowProductResponse) Error() string
func (FollowProductResponse) IsError ¶ added in v1.1.1
func (r FollowProductResponse) IsError() bool
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"` // 是否成功 }
func (FollowProductResult) Error ¶ added in v1.1.1
func (r FollowProductResult) Error() string
func (FollowProductResult) IsError ¶ added in v1.1.1
func (r FollowProductResult) IsError() bool
type IsFollowByPinAndVidData ¶
type IsFollowByPinAndVidData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *IsFollowByPinAndVidResult `json:"isfollowbypinandvid_result,omitempty" codec:"isfollowbypinandvid_result,omitempty"` }
func (IsFollowByPinAndVidData) Error ¶ added in v1.1.1
func (r IsFollowByPinAndVidData) Error() string
func (IsFollowByPinAndVidData) IsError ¶ added in v1.1.1
func (r IsFollowByPinAndVidData) IsError() bool
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 */ }
func (IsFollowByPinAndVidResponse) Error ¶ added in v1.1.1
func (r IsFollowByPinAndVidResponse) Error() string
func (IsFollowByPinAndVidResponse) IsError ¶ added in v1.1.1
func (r IsFollowByPinAndVidResponse) IsError() bool
type QueryForCountByVidData ¶
type QueryForCountByVidData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *QueryForCountByVidResult `json:"queryforcountbyvid_result,omitempty" codec:"queryforcountbyvid_result,omitempty"` }
func (QueryForCountByVidData) Error ¶ added in v1.1.1
func (r QueryForCountByVidData) Error() string
func (QueryForCountByVidData) IsError ¶ added in v1.1.1
func (r QueryForCountByVidData) IsError() bool
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 */ }
func (QueryForCountByVidResponse) Error ¶ added in v1.1.1
func (r QueryForCountByVidResponse) Error() string
func (QueryForCountByVidResponse) IsError ¶ added in v1.1.1
func (r QueryForCountByVidResponse) IsError() bool
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"` }
func (QueryForCountByVidResult) Error ¶ added in v1.1.1
func (r QueryForCountByVidResult) Error() string
func (QueryForCountByVidResult) IsError ¶ added in v1.1.1
func (r QueryForCountByVidResult) IsError() bool
Click to show internal directories.
Click to hide internal directories.