protos

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCfgReq

type AddCfgReq struct {
	Name  string `form:"name" json:"name" mapstructure:"name"`
	Addr  string `form:"addr" json:"addr" mapstructure:"addr"`
	Pwd   string `form:"pwd" json:"pwd" mapstructure:"pwd"`
	Token string `form:"token" json:"token" mapstructure:"token"`
}

type CategoryReq

type CategoryReq struct {
	TypeId int64 `json:"type_id,omitempty" form:"type_id"` //分类id
}

type KeysInfo

type KeysInfo struct {
	Type  string            `form:"type" json:"type" mapstructure:"type"` // msg 提示性数据返回
	Data  string            `form:"data" json:"data" mapstructure:"data"`
	Keys  string            `form:"keys" json:"keys" mapstructure:"keys"`
	Value string            `form:"value" json:"value" mapstructure:"value"`
	Ttl   time.Duration     `form:"ttl" json:"ttl" mapstructure:"ttl"`
	List  []ListRes         `form:"list" json:"list" mapstructure:"list"`
	Hash  map[string]string `form:"hash" json:"hash" mapstructure:"hash"`

	Zset []ZSET `form:"zset" json:"zset" mapstructure:"zset"`

	Page  int `form:"page" json:"page" mapstructure:"page"`
	Total int `form:"total" json:"total" mapstructure:"total"`

	Length int64 `form:"length" json:"length" mapstructure:"length"`
}

type ListRes

type ListRes struct {
	Index int    `form:"index" json:"index" mapstructure:"index"`
	Value string `form:"value" json:"value" mapstructure:"value"`
}

type LivesInfo

type LivesInfo struct {
	Province      string `json:"province"`
	City          string `json:"city"`
	Adcode        string `json:"adcode"`
	Weather       string `json:"weather"`
	Temperature   string `json:"temperature"`
	Winddirection string `json:"winddirection"`
	Windpower     string `json:"windpower"`
	Humidity      string `json:"humidity"`
	Reporttime    string `json:"reporttime"`
}

type Person

type Person struct {
	Name    string `form:"name" json:"name"`       //登录用户
	Ip      string `form:"ip" json:"ip"`           //登录用户
	Token   string `form:"token" json:"token"`     // token有效
	Expires string `form:"expires" json:"expires"` // 到期时间
}

type PersonLogin

type PersonLogin struct {
	Name string `form:"name" json:"name"` //登录用户
	Pwd  string `form:"pwd" json:"pwd"`   // 登录密钥
}

type SearchKeyReq

type SearchKeyReq struct {
	Client string `form:"client" json:"client" mapstructure:"client"`
	Db     string `form:"db" json:"db" mapstructure:"db"`
	Type   string `form:"type" json:"type" mapstructure:"type"`
	Key    string `form:"key" json:"key" mapstructure:"key"`
	Value  string `form:"value" json:"value" mapstructure:"value"`
	Ttl    int    `form:"ttl" json:"ttl" mapstructure:"ttl"`
	Token  string `form:"token" json:"token" mapstructure:"token"`
	Level  int    `form:"level" json:"level" mapstructure:"level"`
	Page   int    `form:"page" json:"page" mapstructure:"page"`
}

type SearchReq

type SearchReq struct {
	Client string `form:"client" json:"client" mapstructure:"client"`
	Db     string `form:"db" json:"db" mapstructure:"db"`
	Key    string `form:"key" json:"key" mapstructure:"key"`
	Token  string `form:"token" json:"token" mapstructure:"token"`
	Level  int    `form:"level" json:"level" mapstructure:"level"`
}

type TestHeader

type TestHeader struct {
	Rate   int    `header:"Rate"`
	Domain string `header:"Domain"`
}

type TokenCheck

type TokenCheck struct {
	Token string `form:"token" json:"token"`
}

type WeatherInfoRep

type WeatherInfoRep struct {
	Status string      `json:"status"` // 1:成功;0:失败
	Count  string      `json:"count"`  // 返回结果总数目
	Info   string      `json:"info"`   // 返回的状态信息
	Lives  []LivesInfo `json:"lives"`
}

type ZSET

type ZSET struct {
	Score  float64     `form:"score" json:"score" mapstructure:"score"`
	Member interface{} `form:"member" json:"member" mapstructure:"member"`
}

Jump to

Keyboard shortcuts

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