Documentation
¶
Overview ¶
自定义请求辅助方法层
Index ¶
- Constants
- Variables
- type AddDebugDeviceIDReq
- type AddUserGroup
- type AnalysisFilter
- type AttrManagerByMetaReq
- type AttrManagerReq
- type CheckConfigStruct
- type DebugDeviceIDListReq
- type DelDebugDeviceIDReq
- type DeleteUserGroup
- type DeleteUserReq
- type EventFailDescReq
- type EventReqData
- type EventZhibiao
- type FindNameCount
- type FindRtById
- type FormulaDimension
- type FunnelReqData
- type GetAnalyseSelectOptionsReq
- type GetCalcuSymbolDataReq
- type GetPannelList
- type GetUserByIdReq
- type GmOperaterLogList
- type GmRoleModel
- type LoadPropQuotasReq
- type ModifyUserGroup
- type NewDir
- type NewPannel
- type ReportCountReq
- type Request
- type RetentionReqData
- type RolesDelReq
- type TraceReqData
- type UpdateAttrInvisibleReq
- type UpdateAttrShowNameReq
- type UpdateShowNameReq
- type UserAddReq
- type UserAttrReqData
- type UserBanReq
- type UserEventCountReq
- type UserEventDetailReq
- type UserEventListReq
- type UserGroupList
- type UserListReq
- type UserListReqData
- type UserUpdateReq
- type Zhibiao
Constants ¶
View Source
const ( IdNullError = 100002 EmptyParmasError = 100003 EmptyEventError = 100004 )
自定义业务异常
Variables ¶
View Source
var ErrorMap = map[int]string{ IdNullError: "id不能为空!", EmptyParmasError: "请求参数不能为空", EmptyEventError: "事件名不能为空", }
Functions ¶
This section is empty.
Types ¶
type AddDebugDeviceIDReq ¶
type AddUserGroup ¶
type AnalysisFilter ¶
type AnalysisFilter struct { FilterType string `json:"filterType"` Filts []struct { FilterType string `json:"filterType"` Filts []struct { ColumnName string `json:"columnName"` Comparator string `json:"comparator"` FilterType string `json:"filterType"` Ftv interface{} `json:"ftv"` } `json:"filts,omitempty"` Relation string `json:"relation,omitempty"` ColumnName string `json:"columnName,omitempty"` Comparator string `json:"comparator,omitempty"` Ftv interface{} `json:"ftv,omitempty"` } `json:"filts"` Relation string `json:"relation"` }
type AttrManagerByMetaReq ¶
type AttrManagerReq ¶
type CheckConfigStruct ¶
type DebugDeviceIDListReq ¶
type DebugDeviceIDListReq struct {
Appid int `json:"appid"`
}
type DelDebugDeviceIDReq ¶
type DeleteUserGroup ¶
type DeleteUserReq ¶
type DeleteUserReq struct {
Id int32 `json:"id"`
}
type EventFailDescReq ¶
type EventReqData ¶
type EventReqData struct { UserGroup []int `json:"userGroup"` ZhibiaoArr []EventZhibiao `json:"zhibiaoArr"` GroupBy []string `json:"groupBy"` WhereFilter AnalysisFilter `json:"whereFilter"` WhereFilterByUser AnalysisFilter `json:"whereFilterByUser"` Date []string `json:"date"` WindowTimeFormat string `json:"windowTimeFormat"` Appid int `json:"appid"` }
type EventZhibiao ¶
type EventZhibiao struct { SelectAttr []string `json:"selectAttr,omitempty"` Typ int `json:"typ"` EventName string `json:"eventName,omitempty"` EventNameDisplay string `json:"eventNameDisplay"` Relation AnalysisFilter `json:"relation,omitempty"` ScaleType string `json:"scaleType,omitempty"` Operate string `json:"operate,omitempty"` One FormulaDimension `json:"one,omitempty"` Two FormulaDimension `json:"two,omitempty"` DivisorNoGrouping bool `json:"divisor_no_grouping"` }
type FindNameCount ¶
type FindRtById ¶
type FormulaDimension ¶
type FormulaDimension struct { SelectAttr []string `json:"selectAttr"` EventName string `json:"eventName"` Relation AnalysisFilter `json:"relation"` }
type FunnelReqData ¶
type FunnelReqData struct { UserGroup []int `json:"userGroup"` ZhibiaoArr []Zhibiao `json:"zhibiaoArr"` WhereFilter AnalysisFilter `json:"whereFilter"` WindowTime int `json:"windowTime"` WindowTimeFormat string `json:"windowTimeFormat"` Date []string `json:"date"` Appid int `json:"appid"` WhereFilterByUser AnalysisFilter `json:"whereFilterByUser"` GroupBy []string `json:"groupBy"` }
type GetAnalyseSelectOptionsReq ¶
type GetAnalyseSelectOptionsReq struct {
Appid int `json:"appid"`
}
type GetCalcuSymbolDataReq ¶
type GetPannelList ¶
type GetPannelList struct {
Appid int `db:"appid" json:"appid"`
}
type GetUserByIdReq ¶
type GetUserByIdReq struct {
Id int32 `json:"id"`
}
type GmOperaterLogList ¶
type GmRoleModel ¶
type GmRoleModel struct { ID int `json:"id" db:"id"` RoleName string `json:"name" db:"role_name"` Description string `json:"description" db:"description"` RoleList string `json:"routes" db:"role_list"` Api []string `json:"api"` }
GmRoleModel
type LoadPropQuotasReq ¶
type ModifyUserGroup ¶
type ReportCountReq ¶
type Request ¶
type Request struct { }
自定义请求 辅助方法
func (Request) CheckParameter ¶
func (this Request) CheckParameter(checkConfig []CheckConfigStruct, ctx *fiber.Ctx) (err error)
检查请求参数
func (Request) FormIntDefault ¶
FormIntDefault 获取Form参数 如果出错则返回默认值
type RetentionReqData ¶
type RetentionReqData struct { UserGroup []int `json:"userGroup"` ZhibiaoArr []struct { EventName string `json:"eventName"` EventNameDisplay string `json:"eventNameDisplay"` Relation AnalysisFilter `json:"relation"` } `json:"zhibiaoArr"` WhereFilter AnalysisFilter `json:"whereFilter"` WindowTime int `json:"windowTime"` WindowTimeFormat string `json:"windowTimeFormat"` Date []string `json:"date"` Appid int `json:"appid"` WhereFilterByUser AnalysisFilter `json:"whereFilterByUser"` GroupBy []string `json:"groupBy"` }
type RolesDelReq ¶
type RolesDelReq struct {
Id int `json:"id"`
}
type TraceReqData ¶
type TraceReqData struct { EventNames []string `json:"eventNames"` UserGroup []int `json:"userGroup"` ZhibiaoArr []Zhibiao `json:"zhibiaoArr"` WhereFilter AnalysisFilter `json:"whereFilter"` WindowTime int `json:"windowTime"` WindowTimeFormat string `json:"windowTimeFormat"` Date []string `json:"date"` Appid int `json:"appid"` WhereFilterByUser AnalysisFilter `json:"whereFilterByUser"` GroupBy []string `json:"groupBy"` }
type UpdateAttrInvisibleReq ¶
type UpdateAttrShowNameReq ¶
type UpdateShowNameReq ¶
type UserAddReq ¶
type UserAttrReqData ¶
type UserAttrReqData struct { UserGroup []int `json:"userGroup"` ZhibiaoArr []string `json:"zhibiaoArr"` GroupBy []string `json:"groupBy"` WhereFilterByUser AnalysisFilter `json:"whereFilterByUser"` Appid int `json:"appid"` }
type UserBanReq ¶
type UserEventCountReq ¶
type UserEventDetailReq ¶
type UserEventListReq ¶
type UserGroupList ¶
type UserGroupList struct {
Appid int `json:"appid"`
}
type UserListReq ¶
type UserListReq struct {
Appid int `json:"appid,omitempty" `
}
type UserListReqData ¶
type UserUpdateReq ¶
type Zhibiao ¶
type Zhibiao struct { EventName string `json:"eventName"` EventNameDisplay string `json:"eventNameDisplay"` Relation AnalysisFilter `json:"relation"` }
Click to show internal directories.
Click to hide internal directories.