Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶ added in v1.2.0
api响应结构
type ChangeValue ¶ added in v1.2.0
type ChangeValue struct { // 数值类型 ValueType int `validate:"min=0,required"` // 目标编号 / 目标类型 TargetNo, TargetType int `validate:"min=0"` // 数量, Count int64 `validate:"required"` // 来源 Source string }
变更数值
type DynamicApiResponse ¶ added in v1.2.0
动态api响应结构
func (DynamicApiResponse[T]) GetData ¶ added in v1.2.0
func (m DynamicApiResponse[T]) GetData() interface{}
获取数据
func (DynamicApiResponse[T]) GetErrorCode ¶ added in v1.2.0
func (m DynamicApiResponse[T]) GetErrorCode() errorcode.Value
获取错误码
type RedisGeoLocation ¶
type RedisGeoLocation struct { RedisGeoPosition Distance float64 Hash int64 Member string }
type RedisGeoRadiusQuery ¶
type RedisGeoRadiusQuery struct { Count int Radius float64 Sort string Unit string WithCoord bool WithDist bool WithHash bool }
redis geo半径查询
type RedisZMember ¶
type RedisZRangeByScore ¶
type Reward ¶ added in v1.3.0
type Reward struct { ChangeValue `bson:",inline"` // 权重 Weight int `validate:"min=1"` }
奖励
Click to show internal directories.
Click to hide internal directories.