Инструменты пользователя

Инструменты сайта


yovokids_api_storage

Это старая версия документа!


Data Format


input

type tStorageInput struct {
	Uid    int64  `json:"Uid"`
	Token  string `json:"Token"`
	Bundle string `json:"Bundle"`

	Data string `json:"Data"`
}
Data - missed for /get
Data string = "key1,key2,key3" //getkeys, delkeys
Data string = "key1:value1,key2:value2,key3:value3" //setkeys, pluskeys, minuskeys


any = int||long||float||string

output

type tStorageOutput struct {
	Data map[string]any //changed data
}
  • /plus and /minus works only if type is int||long||float
  • if you try to add or subtract key that doesnt exists in db - keys will be created
  • if you try to add or subtract key with data type string - key will be ignored
  • if you try to add float to int the data type will change to float
yovokids_api_storage.1667396660.txt.gz · Последние изменения: 2022/11/02 13:44 — serg