logic

package
v0.0.0-...-02e8cc8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch_props

func Fetch_props(cid int, token string) error

Types

type CnameData

type CnameData struct {
	ItemcatsGetResponse struct {
		ItemCats struct {
			ItemCat []struct {
				Cid       int    `json:"cid"`
				IsParent  bool   `json:"is_parent"`
				Name      string `json:"name"`
				ParentCid int    `json:"parent_cid"`
			} `json:"item_cat"`
		} `json:"item_cats"`
		RequestID string `json:"request_id"`
	} `json:"itemcats_get_response"`
}

type PropsData

type PropsData struct {
	Data struct {
		Response string `json:"response"`
	} `json:"data"`
}

type PropsResponse

type PropsResponse struct {
	ItempropsGetResponse struct {
		LastModified string `json:"last_modified"`
		ItemProps    struct {
			ItemProp []struct {
				Pid         int    `json:"pid"`
				ParentPid   int    `json:"parent_pid"`
				ParentVid   int    `json:"parent_vid"`
				Name        string `json:"name"`
				IsKeyProp   bool   `json:"is_key_prop"`
				IsSaleProp  bool   `json:"is_sale_prop"`
				IsColorProp bool   `json:"is_color_prop"`
				IsEnumProp  bool   `json:"is_enum_prop"`
				IsItemProp  bool   `json:"is_item_prop"`
				Must        bool   `json:"must"`
				Multi       bool   `json:"multi"`
				PropValues  struct {
					PropValue []struct {
						Cid       int    `json:"cid"`
						Pid       int    `json:"pid"`
						PropName  string `json:"prop_name"`
						Vid       int    `json:"vid"`
						Name      string `json:"name"`
						NameAlias string `json:"name_alias"`
						IsParent  bool   `json:"is_parent"`
						Status    string `json:"status"`
						SortOrder int    `json:"sort_order"`
						Features  struct {
							Feature []struct {
								AttrKey   string `json:"attr_key"`
								AttrValue string `json:"attr_value"`
							} `json:"feature"`
						} `json:"features"`
					} `json:"prop_value"`
				} `json:"prop_values"`
				Status        string `json:"status"`
				SortOrder     int    `json:"sort_order"`
				ChildTemplate string `json:"child_template"`
				IsAllowAlias  bool   `json:"is_allow_alias"`
				IsInputProp   bool   `json:"is_input_prop"`
				Features      struct {
					Feature []struct {
						AttrKey   string `json:"attr_key"`
						AttrValue string `json:"attr_value"`
					} `json:"feature"`
				} `json:"features"`
				IsTaosir bool `json:"is_taosir"`
				TaosirDo struct {
					StdUnitList struct {
						StdUnit []struct {
							AttrKey   string `json:"attr_key"`
							AttrValue string `json:"attr_value"`
						} `json:"std_unit"`
					} `json:"std_unit_list"`
					ExprElList struct {
						ExprEl []struct {
							Type        int    `json:"type"`
							Text        string `json:"text"`
							IsShowLabel bool   `json:"is_show_label"`
							IsLabel     bool   `json:"is_label"`
							IsInput     bool   `json:"is_input"`
						} `json:"expr_el"`
					} `json:"expr_el_list"`
					Type      int `json:"type"`
					Precision int `json:"precision"`
				} `json:"taosir_do"`
				IsMaterial bool `json:"is_material"`
				MaterialDo struct {
					Materials struct {
						ItemMateriaValueDO []struct {
							Name              string `json:"name"`
							NeedContentNumber bool   `json:"need_content_number"`
						} `json:"item_materia_value_d_o"`
					} `json:"materials"`
				} `json:"material_do"`
			} `json:"item_prop"`
		} `json:"item_props"`
	} `json:"itemprops_get_response"`
}

Jump to

Keyboard shortcuts

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