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

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


yovokids_api_storage

Data Format


2 независимых хранилища данных (ключ-значение)

  • Skills
  • Data

все запросы одинаковые, разница только в пути к запросу.

список комманд внизу страницы

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.txt · Последние изменения: 2023/04/13 09:53 — serg