foodscan

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

脚模API model

https://open.taobao.com/API.htm?docId=50512&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaFootscanMiniImageUploadAPIResponse

type AlibabaFootscanMiniImageUploadAPIResponse struct {
	model.CommonResponse
	AlibabaFootscanMiniImageUploadResponse
}

商家端图片上传 API返回值 alibaba.footscan.mini.image.upload

提供图片上传功能,同时进行图片的检测

type AlibabaFootscanMiniImageUploadData

type AlibabaFootscanMiniImageUploadData struct {
	// 图片URL
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 图片名称
	FileName string `json:"file_name,omitempty" xml:"file_name,omitempty"`
}

AlibabaFootscanMiniImageUploadData

type AlibabaFootscanMiniImageUploadMtopResult

type AlibabaFootscanMiniImageUploadMtopResult struct {
	// 成功
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回i数据
	Data *AlibabaFootscanMiniImageUploadData `json:"data,omitempty" xml:"data,omitempty"`
	// 成功
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaFootscanMiniImageUploadMtopResult

type AlibabaFootscanMiniImageUploadRequest

type AlibabaFootscanMiniImageUploadRequest struct {
	model.Params
	// contains filtered or unexported fields
}

商家端图片上传 API请求 alibaba.footscan.mini.image.upload

提供图片上传功能,同时进行图片的检测

func NewAlibabaFootscanMiniImageUploadRequest

func NewAlibabaFootscanMiniImageUploadRequest() *AlibabaFootscanMiniImageUploadRequest

初始化AlibabaFootscanMiniImageUploadRequest对象

func (AlibabaFootscanMiniImageUploadRequest) GetApiMethodName

func (r AlibabaFootscanMiniImageUploadRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaFootscanMiniImageUploadRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaFootscanMiniImageUploadRequest) GetReqData

ReqData Getter

func (AlibabaFootscanMiniImageUploadRequest) GetToken

Token Getter

func (*AlibabaFootscanMiniImageUploadRequest) SetReqData

func (r *AlibabaFootscanMiniImageUploadRequest) SetReqData(reqData *CheckParam) error

ReqData Setter 请求数据

func (*AlibabaFootscanMiniImageUploadRequest) SetToken

Token Setter 平台分配的token

type AlibabaFootscanMiniImageUploadResponse

type AlibabaFootscanMiniImageUploadResponse struct {
	XMLName xml.Name `xml:"alibaba_footscan_mini_image_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *AlibabaFootscanMiniImageUploadMtopResult `json:"result,omitempty" xml:"result,omitempty"`
}

商家端图片上传 成功返回结果

type AlibabaFootscanMiniQueryMobilereportAPIResponse

type AlibabaFootscanMiniQueryMobilereportAPIResponse struct {
	model.CommonResponse
	AlibabaFootscanMiniQueryMobilereportResponse
}

根据scanId查询报告 API返回值 alibaba.footscan.mini.query.mobilereport

根据scanId查询报告

type AlibabaFootscanMiniQueryMobilereportData

type AlibabaFootscanMiniQueryMobilereportData struct {
	// 右脚趾围
	RightZhiwei string `json:"right_zhiwei,omitempty" xml:"right_zhiwei,omitempty"`
	// 右脚跗围
	RightFuwei string `json:"right_fuwei,omitempty" xml:"right_fuwei,omitempty"`
	// 右脚宽
	RightWidth string `json:"right_width,omitempty" xml:"right_width,omitempty"`
	// 右脚长
	RightLength string `json:"right_length,omitempty" xml:"right_length,omitempty"`
	// 左脚趾围
	LeftZhiwei string `json:"left_zhiwei,omitempty" xml:"left_zhiwei,omitempty"`
	// 左脚跗围
	LeftFuwei string `json:"left_fuwei,omitempty" xml:"left_fuwei,omitempty"`
	// 左脚宽
	LeftWidth string `json:"left_width,omitempty" xml:"left_width,omitempty"`
	// 左脚长
	LeftLength string `json:"left_length,omitempty" xml:"left_length,omitempty"`
}

AlibabaFootscanMiniQueryMobilereportData

type AlibabaFootscanMiniQueryMobilereportMtopResult

type AlibabaFootscanMiniQueryMobilereportMtopResult struct {
	// 成功
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回i数据
	Data *AlibabaFootscanMiniQueryMobilereportData `json:"data,omitempty" xml:"data,omitempty"`
	// 成功
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaFootscanMiniQueryMobilereportMtopResult

type AlibabaFootscanMiniQueryMobilereportRequest

type AlibabaFootscanMiniQueryMobilereportRequest struct {
	model.Params
	// contains filtered or unexported fields
}

根据scanId查询报告 API请求 alibaba.footscan.mini.query.mobilereport

根据scanId查询报告

func NewAlibabaFootscanMiniQueryMobilereportRequest

func NewAlibabaFootscanMiniQueryMobilereportRequest() *AlibabaFootscanMiniQueryMobilereportRequest

初始化AlibabaFootscanMiniQueryMobilereportRequest对象

func (AlibabaFootscanMiniQueryMobilereportRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaFootscanMiniQueryMobilereportRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaFootscanMiniQueryMobilereportRequest) GetScanId

ScanId Getter

func (AlibabaFootscanMiniQueryMobilereportRequest) GetToken

Token Getter

func (*AlibabaFootscanMiniQueryMobilereportRequest) SetScanId

ScanId Setter 扫描ID

func (*AlibabaFootscanMiniQueryMobilereportRequest) SetToken

Token Setter 平台分配的token

type AlibabaFootscanMiniQueryMobilereportResponse

type AlibabaFootscanMiniQueryMobilereportResponse struct {
	XMLName xml.Name `xml:"alibaba_footscan_mini_query_mobilereport_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *AlibabaFootscanMiniQueryMobilereportMtopResult `json:"result,omitempty" xml:"result,omitempty"`
}

根据scanId查询报告 成功返回结果

type AlibabaFootscanMiniReportFragmentFirstAPIResponse

type AlibabaFootscanMiniReportFragmentFirstAPIResponse struct {
	model.CommonResponse
	AlibabaFootscanMiniReportFragmentFirstResponse
}

第一只脚生成报告接口 API返回值 alibaba.footscan.mini.report.fragment.first

第一只脚生成报告接口

type AlibabaFootscanMiniReportFragmentFirstData

type AlibabaFootscanMiniReportFragmentFirstData struct {
	// 扫描ID
	ScanId string `json:"scan_id,omitempty" xml:"scan_id,omitempty"`
	// 测量结果为0
	IsZero bool `json:"is_zero,omitempty" xml:"is_zero,omitempty"`
}

AlibabaFootscanMiniReportFragmentFirstData

type AlibabaFootscanMiniReportFragmentFirstMtopResult

type AlibabaFootscanMiniReportFragmentFirstMtopResult struct {
	// 成功
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回i数据
	Data *AlibabaFootscanMiniReportFragmentFirstData `json:"data,omitempty" xml:"data,omitempty"`
	// 成功
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaFootscanMiniReportFragmentFirstMtopResult

type AlibabaFootscanMiniReportFragmentFirstRequest

type AlibabaFootscanMiniReportFragmentFirstRequest struct {
	model.Params
	// contains filtered or unexported fields
}

第一只脚生成报告接口 API请求 alibaba.footscan.mini.report.fragment.first

第一只脚生成报告接口

func NewAlibabaFootscanMiniReportFragmentFirstRequest

func NewAlibabaFootscanMiniReportFragmentFirstRequest() *AlibabaFootscanMiniReportFragmentFirstRequest

初始化AlibabaFootscanMiniReportFragmentFirstRequest对象

func (AlibabaFootscanMiniReportFragmentFirstRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaFootscanMiniReportFragmentFirstRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaFootscanMiniReportFragmentFirstRequest) GetReqData

ReqData Getter

func (AlibabaFootscanMiniReportFragmentFirstRequest) GetToken

Token Getter

func (*AlibabaFootscanMiniReportFragmentFirstRequest) SetReqData

ReqData Setter 请求数据

func (*AlibabaFootscanMiniReportFragmentFirstRequest) SetToken

Token Setter 平台分配的token

type AlibabaFootscanMiniReportFragmentFirstResponse

type AlibabaFootscanMiniReportFragmentFirstResponse struct {
	XMLName xml.Name `xml:"alibaba_footscan_mini_report_fragment_first_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *AlibabaFootscanMiniReportFragmentFirstMtopResult `json:"result,omitempty" xml:"result,omitempty"`
}

第一只脚生成报告接口 成功返回结果

type AlibabaFootscanMiniReportFragmentSecondAPIResponse

type AlibabaFootscanMiniReportFragmentSecondAPIResponse struct {
	model.CommonResponse
	AlibabaFootscanMiniReportFragmentSecondResponse
}

第二只脚生成报告接口 API返回值 alibaba.footscan.mini.report.fragment.second

第二只脚生成报告接口

type AlibabaFootscanMiniReportFragmentSecondData

type AlibabaFootscanMiniReportFragmentSecondData struct {
	// 扫描ID
	ScanId string `json:"scan_id,omitempty" xml:"scan_id,omitempty"`
	// 测量结果为0
	IsZero bool `json:"is_zero,omitempty" xml:"is_zero,omitempty"`
}

AlibabaFootscanMiniReportFragmentSecondData

type AlibabaFootscanMiniReportFragmentSecondMtopResult

type AlibabaFootscanMiniReportFragmentSecondMtopResult struct {
	// 成功
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回i数据
	Data *AlibabaFootscanMiniReportFragmentSecondData `json:"data,omitempty" xml:"data,omitempty"`
	// 成功
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaFootscanMiniReportFragmentSecondMtopResult

type AlibabaFootscanMiniReportFragmentSecondRequest

type AlibabaFootscanMiniReportFragmentSecondRequest struct {
	model.Params
	// contains filtered or unexported fields
}

第二只脚生成报告接口 API请求 alibaba.footscan.mini.report.fragment.second

第二只脚生成报告接口

func NewAlibabaFootscanMiniReportFragmentSecondRequest

func NewAlibabaFootscanMiniReportFragmentSecondRequest() *AlibabaFootscanMiniReportFragmentSecondRequest

初始化AlibabaFootscanMiniReportFragmentSecondRequest对象

func (AlibabaFootscanMiniReportFragmentSecondRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaFootscanMiniReportFragmentSecondRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaFootscanMiniReportFragmentSecondRequest) GetReqData

ReqData Getter

func (AlibabaFootscanMiniReportFragmentSecondRequest) GetToken

Token Getter

func (*AlibabaFootscanMiniReportFragmentSecondRequest) SetReqData

ReqData Setter 请求数据

func (*AlibabaFootscanMiniReportFragmentSecondRequest) SetToken

Token Setter 平台分配的token

type AlibabaFootscanMiniReportFragmentSecondResponse

type AlibabaFootscanMiniReportFragmentSecondResponse struct {
	XMLName xml.Name `xml:"alibaba_footscan_mini_report_fragment_second_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *AlibabaFootscanMiniReportFragmentSecondMtopResult `json:"result,omitempty" xml:"result,omitempty"`
}

第二只脚生成报告接口 成功返回结果

type AlibabaFootscanMiniReportListAPIResponse

type AlibabaFootscanMiniReportListAPIResponse struct {
	model.CommonResponse
	AlibabaFootscanMiniReportListResponse
}

查询报告列表 API返回值 alibaba.footscan.mini.report.list

查询报告列表

type AlibabaFootscanMiniReportListData

type AlibabaFootscanMiniReportListData struct {
	// 页码
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
	// 页长
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 列表数据
	List []FeetModelMobileReportVo `json:"list,omitempty" xml:"list>feet_model_mobile_report_vo,omitempty"`
}

AlibabaFootscanMiniReportListData

type AlibabaFootscanMiniReportListMtopResult

type AlibabaFootscanMiniReportListMtopResult struct {
	// 成功
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回数据
	Data *AlibabaFootscanMiniReportListData `json:"data,omitempty" xml:"data,omitempty"`
	// 成功
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaFootscanMiniReportListMtopResult

type AlibabaFootscanMiniReportListRequest

type AlibabaFootscanMiniReportListRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询报告列表 API请求 alibaba.footscan.mini.report.list

查询报告列表

func NewAlibabaFootscanMiniReportListRequest

func NewAlibabaFootscanMiniReportListRequest() *AlibabaFootscanMiniReportListRequest

初始化AlibabaFootscanMiniReportListRequest对象

func (AlibabaFootscanMiniReportListRequest) GetApiMethodName

func (r AlibabaFootscanMiniReportListRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaFootscanMiniReportListRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaFootscanMiniReportListRequest) GetReqData

ReqData Getter

func (AlibabaFootscanMiniReportListRequest) GetToken

Token Getter

func (*AlibabaFootscanMiniReportListRequest) SetReqData

ReqData Setter 请求数据

func (*AlibabaFootscanMiniReportListRequest) SetToken

Token Setter 平台分配的token

type AlibabaFootscanMiniReportListResponse

type AlibabaFootscanMiniReportListResponse struct {
	XMLName xml.Name `xml:"alibaba_footscan_mini_report_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *AlibabaFootscanMiniReportListMtopResult `json:"result,omitempty" xml:"result,omitempty"`
}

查询报告列表 成功返回结果

type AlibabaFootscanMiniSavedAPIResponse

type AlibabaFootscanMiniSavedAPIResponse struct {
	model.CommonResponse
	AlibabaFootscanMiniSavedResponse
}

更新报告状态 API返回值 alibaba.footscan.mini.saved

更新报告状态接口

type AlibabaFootscanMiniSavedMtopResult

type AlibabaFootscanMiniSavedMtopResult struct {
	// 成功
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 是否更新成功
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// 成功
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaFootscanMiniSavedMtopResult

type AlibabaFootscanMiniSavedRequest

type AlibabaFootscanMiniSavedRequest struct {
	model.Params
	// contains filtered or unexported fields
}

更新报告状态 API请求 alibaba.footscan.mini.saved

更新报告状态接口

func NewAlibabaFootscanMiniSavedRequest

func NewAlibabaFootscanMiniSavedRequest() *AlibabaFootscanMiniSavedRequest

初始化AlibabaFootscanMiniSavedRequest对象

func (AlibabaFootscanMiniSavedRequest) GetApiMethodName

func (r AlibabaFootscanMiniSavedRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaFootscanMiniSavedRequest) GetApiParams

func (r AlibabaFootscanMiniSavedRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaFootscanMiniSavedRequest) GetReqData

func (r AlibabaFootscanMiniSavedRequest) GetReqData() string

ReqData Getter

func (AlibabaFootscanMiniSavedRequest) GetToken

Token Getter

func (*AlibabaFootscanMiniSavedRequest) SetReqData

func (r *AlibabaFootscanMiniSavedRequest) SetReqData(reqData string) error

ReqData Setter 请求数据

func (*AlibabaFootscanMiniSavedRequest) SetToken

func (r *AlibabaFootscanMiniSavedRequest) SetToken(token string) error

Token Setter 平台分配的token

type AlibabaFootscanMiniSavedResponse

type AlibabaFootscanMiniSavedResponse struct {
	XMLName xml.Name `xml:"alibaba_footscan_mini_saved_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *AlibabaFootscanMiniSavedMtopResult `json:"result,omitempty" xml:"result,omitempty"`
}

更新报告状态 成功返回结果

type CheckParam

type CheckParam struct {
	// 图片base64编码,注意字符串前缀
	BaseCode string `json:"base_code,omitempty" xml:"base_code,omitempty"`
	// 1男2女
	Gender int64 `json:"gender,omitempty" xml:"gender,omitempty"`
	// 淘宝的nickName
	NickName string `json:"nick_name,omitempty" xml:"nick_name,omitempty"`
	// 前8位是日期,后10位是随机字符串
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 第几次拍照 0 左脚背面 1 左脚内侧 2 左脚外侧 3右脚脚背 4右脚内侧 5右脚外侧
	Index int64 `json:"index,omitempty" xml:"index,omitempty"`
	// 1左脚 2右脚
	ModelType int64 `json:"model_type,omitempty" xml:"model_type,omitempty"`
	// 用户唯一标识,可以是淘宝用户Id
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

CheckParam

type FeetModelMobileReportVo

type FeetModelMobileReportVo struct {
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 扫描ID
	ScanId string `json:"scan_id,omitempty" xml:"scan_id,omitempty"`
	// 脚长
	FootLength string `json:"foot_length,omitempty" xml:"foot_length,omitempty"`
	// 脚宽
	FootWidth string `json:"foot_width,omitempty" xml:"foot_width,omitempty"`
	// 性别  1:男 2:女
	Gender int64 `json:"gender,omitempty" xml:"gender,omitempty"`
}

FeetModelMobileReportVo

type FilePackageBasicReq

type FilePackageBasicReq struct {
	// 脚型报告的唯一标识
	ScanId string `json:"scan_id,omitempty" xml:"scan_id,omitempty"`
	// 第一张图片的文件名
	FileName1 string `json:"file_name1,omitempty" xml:"file_name1,omitempty"`
	// 第二张图片的文件名
	FileName2 string `json:"file_name2,omitempty" xml:"file_name2,omitempty"`
	// 1左脚 2右脚
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 用户唯一标识,可以是淘宝用户ID
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 第三张图片的文件名
	FileName3 string `json:"file_name3,omitempty" xml:"file_name3,omitempty"`
}

FilePackageBasicReq

type FilePackageRequest

type FilePackageRequest struct {
	// 用户关系类型0/本人 1/爱人 2/父母 3/朋友 4/子女 99/他人
	RelationType int64 `json:"relation_type,omitempty" xml:"relation_type,omitempty"`
	// 1男2女
	Gender int64 `json:"gender,omitempty" xml:"gender,omitempty"`
	// 城市名称
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 淘宝的nickName
	NickName string `json:"nick_name,omitempty" xml:"nick_name,omitempty"`
	// 角色ID
	RoleId string `json:"role_id,omitempty" xml:"role_id,omitempty"`
	// 区域编码
	DistrictAdcode string `json:"district_adcode,omitempty" xml:"district_adcode,omitempty"`
	// 1左脚 2右脚
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 用户唯一标识,可以是淘宝用户Id
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 设备系统平台
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
	// 设备品牌
	MobileBrand string `json:"mobile_brand,omitempty" xml:"mobile_brand,omitempty"`
	// 省份名称
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 前8位是日期,后10位是随机字符串
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 城市代码
	CityAdcode string `json:"city_adcode,omitempty" xml:"city_adcode,omitempty"`
	// 国家代码
	CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"`
	// 手机型号
	MobileModel string `json:"mobile_model,omitempty" xml:"mobile_model,omitempty"`
	// 区域名称
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 第一张图片的文件名
	FileName1 string `json:"file_name1,omitempty" xml:"file_name1,omitempty"`
	// 第二张图片的文件名
	FileName2 string `json:"file_name2,omitempty" xml:"file_name2,omitempty"`
	// 第三张图片的文件名
	FileName3 string `json:"file_name3,omitempty" xml:"file_name3,omitempty"`
}

FilePackageRequest

type TobFeetModelMobileReportRequest

type TobFeetModelMobileReportRequest struct {
	// 2020-05-20 00:00:00
	RelationType int64 `json:"relation_type,omitempty" xml:"relation_type,omitempty"`
	// 1男2女
	Gender int64 `json:"gender,omitempty" xml:"gender,omitempty"`
	// yyyy-MM-dd HH:mm:ss
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// yyyy-MM-dd HH:mm:ss
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 第几页
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
	// 用户唯一标识,可以是淘宝用户ID
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 淘宝昵称
	NickName string `json:"nick_name,omitempty" xml:"nick_name,omitempty"`
}

TobFeetModelMobileReportRequest

Jump to

Keyboard shortcuts

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