protos

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 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 AddShelfReq added in v1.0.0

type AddShelfReq struct {
	BookId    int32 `json:"book_id,omitempty" form:"book_id"`
	ChapterId int32 `json:"chapter_id,omitempty" form:"chapter_id"`
	MemberInfo
}

type BookChapterResp added in v1.0.0

type BookChapterResp struct {
	Info    interface{} `json:"info,omitempty" form:"info"`
	Chapter interface{} `json:"chapter,omitempty" form:"chapter"`
	Mid     int32       `json:"mid,omitempty" form:"mid"`
	Name    string      `json:"name,omitempty" form:"name"`
}

type BookInfoResp added in v1.0.0

type BookInfoResp struct {
	Info    interface{} `json:"info,omitempty" form:"info"`
	IsShelf int32       `json:"is_shelf,omitempty" form:"is_shelf"`
	Mid     int32       `json:"mid,omitempty" form:"mid"`
	Name    string      `json:"name,omitempty" form:"name"`
}

type BookListReq added in v1.0.0

type BookListReq struct {
	Category int32  `json:"category_id,omitempty" form:"category_id"` //分类id
	Name     string `json:"name,omitempty" form:"name"`               //搜索名称
	Token    string `json:"token,omitempty" form:"token"`             //分类id
	PageSep
}

type BookListResp added in v1.0.0

type BookListResp struct {
	Total int64       `json:"total,omitempty" form:"total"`
	Pn    int         `json:"pn,omitempty" form:"pn"`
	List  interface{} `json:"list,omitempty" form:"list"`
}

type CategoryReq

type CategoryReq struct {
	CategoryId int32 `json:"category_id,omitempty" form:"category_id"` //分类id
}

type ChapterCommentReq added in v1.0.0

type ChapterCommentReq struct {
	BookId    int32  `json:"book_id,omitempty" form:"book_id"`
	ChapterId int32  `json:"chapter_id,omitempty" form:"chapter_id"`
	Content   string `json:"content,omitempty" form:"content"`
}

type ChapterReq added in v1.0.0

type ChapterReq struct {
	BookId    int32 `json:"book_id,omitempty" form:"book_id"`
	ChapterId int32 `json:"chapter_id,omitempty" form:"chapter_id"`
	PageSep
}

type FeedBackReq added in v1.0.0

type FeedBackReq struct {
	Content string `json:"content,omitempty" form:"content"` //分类id
	MemberInfo
}

type GetFeedBackReq added in v1.0.0

type GetFeedBackReq struct {
	PageSep
	MemberInfo
}

type GetFeedBackResp added in v1.0.0

type GetFeedBackResp struct {
	Total int64       `json:"total,omitempty" form:"total"`
	Pn    int         `json:"pn,omitempty" form:"pn"`
	List  interface{} `json:"list,omitempty" form:"list"`
}

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 MemberBookListResp added in v1.0.0

type MemberBookListResp struct {
	Total int64       `json:"total,omitempty" form:"total"`
	Pn    int         `json:"pn,omitempty" form:"pn"`
	List  interface{} `json:"list,omitempty" form:"list"`
}

type MemberInfo added in v1.0.0

type MemberInfo struct {
	MemberName string `json:"member_name,omitempty" form:"member_name"`
	MemberId   string `json:"member_id,omitempty" form:"member_id"`
}

type MemberReq added in v1.0.0

type MemberReq struct {
	CategoryId int32 `json:"category_id,omitempty" form:"category_id"` //分类id
	PageSep
	MemberInfo
}

type PageSep added in v1.0.0

type PageSep struct {
	Ps int `json:"ps,omitempty" form:"ps"` // 单页数量
	Pn int `json:"pn,omitempty" form:"pn"` //页数
}

type Person

type Person struct {
	Id      int32  `form:"id" json:"id"`           //登录用户id
	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"`   // 登录密钥
	Pwd2 string `form:"pwd2" json:"pwd2"` // 登录密钥
}

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