homeai

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package homeai 包含HOMEAI相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundingBoxDto

type BoundingBoxDto struct {
	// x
	XLen string `json:"x_len,omitempty" xml:"x_len,omitempty"`
	// y
	YLen string `json:"y_len,omitempty" xml:"y_len,omitempty"`
	// z
	ZLen string `json:"z_len,omitempty" xml:"z_len,omitempty"`
}

BoundingBoxDto 结构体

type FeatureWallDto

type FeatureWallDto struct {
	// 方向四元数
	Fronts []string `json:"fronts,omitempty" xml:"fronts>string,omitempty"`
	// 坐标
	Pos []string `json:"pos,omitempty" xml:"pos>string,omitempty"`
	// roomid
	Room string `json:"room,omitempty" xml:"room,omitempty"`
	// 硬装类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 包围盒
	BoundingBox *BoundingBoxDto `json:"bounding_box,omitempty" xml:"bounding_box,omitempty"`
}

FeatureWallDto 结构体

type FeatureWallSuggestionDto

type FeatureWallSuggestionDto struct {
	// 墙位置
	FeatureWalls []FeatureWallDto `json:"feature_walls,omitempty" xml:"feature_walls>feature_wall_dto,omitempty"`
	// designid
	DesignId string `json:"design_id,omitempty" xml:"design_id,omitempty"`
}

FeatureWallSuggestionDto 结构体

type TaobaohomeaialgpredictAPIRequest added in v1.3.1

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

TaobaohomeaialgpredictAPIRequest 硬装预测接口 API请求 taobao.homeai.alg.predict

居然之家硬装预测服务

func NewTaobaohomeaialgpredictRequest added in v1.3.1

func NewTaobaohomeaialgpredictRequest() *TaobaohomeaialgpredictAPIRequest

NewTaobaohomeaialgpredictRequest 初始化TaobaohomeaialgpredictAPIRequest对象

func (TaobaohomeaialgpredictAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaohomeaialgpredictAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaohomeaialgpredictAPIRequest) GetApiParams added in v1.3.1

func (r TaobaohomeaialgpredictAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaohomeaialgpredictAPIRequest) GetFromCase added in v1.3.1

func (r TaobaohomeaialgpredictAPIRequest) GetFromCase() string

GetFromCase FromCase Getter

func (TaobaohomeaialgpredictAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaohomeaialgpredictAPIRequest) GetToCase added in v1.3.1

GetToCase ToCase Getter

func (*TaobaohomeaialgpredictAPIRequest) SetFromCase added in v1.3.1

func (r *TaobaohomeaialgpredictAPIRequest) SetFromCase(_fromCase string) error

SetFromCase is FromCase Setter 来源房间json

func (*TaobaohomeaialgpredictAPIRequest) SetToCase added in v1.3.1

func (r *TaobaohomeaialgpredictAPIRequest) SetToCase(_toCase string) error

SetToCase is ToCase Setter 我的家房间json

type TaobaohomeaialgpredictAPIResponse added in v1.3.1

type TaobaohomeaialgpredictAPIResponse struct {
	model.CommonResponse
	TaobaohomeaialgpredictAPIResponseModel
}

TaobaohomeaialgpredictAPIResponse 硬装预测接口 API返回值 taobao.homeai.alg.predict

居然之家硬装预测服务

type TaobaohomeaialgpredictAPIResponseModel added in v1.3.1

type TaobaohomeaialgpredictAPIResponseModel struct {
	XMLName xml.Name `xml:"homeai_alg_predict_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *TaobaohomeaialgpredictResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaohomeaialgpredictAPIResponseModel is 硬装预测接口 成功返回结果

type TaobaohomeaialgpredictResult added in v1.3.1

type TaobaohomeaialgpredictResult struct {
	// code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// errormsg
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// data
	Data *FeatureWallSuggestionDto `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaohomeaialgpredictResult 结构体

Jump to

Keyboard shortcuts

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