controller

package
v0.0.0-...-9337120 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

控制器层

Index

Constants

This section is empty.

Variables

View Source
var ConnUUidMap sync.Map

Functions

func DebugDataWs

func DebugDataWs(c *websocket.Conn)

长链接 用于测试设备的数据接收

func GetWordParse

func GetWordParse(ctx *fasthttp.RequestCtx)

Types

type AppController

type AppController struct {
	BaseController
}

func (AppController) Config

func (this AppController) Config(ctx *fiber.Ctx) error

得到该用户的应用下拉选

func (AppController) Create

func (this AppController) Create(ctx *fiber.Ctx) error

创建应用

func (AppController) List

func (this AppController) List(ctx *fiber.Ctx) error

func (AppController) ResetAppkey

func (this AppController) ResetAppkey(ctx *fiber.Ctx) error

重置应用的appkey

func (AppController) StatusAction

func (this AppController) StatusAction(ctx *fiber.Ctx) error

修改应用的状态

func (AppController) UpdateManager

func (this AppController) UpdateManager(ctx *fiber.Ctx) error

修改应用管理员

type BaseController

type BaseController struct {
	response.Response
	request.Request
}

父控制器结构体

type BehaviorAnalysisController

type BehaviorAnalysisController struct {
	BaseController
}

func (BehaviorAnalysisController) EventList

func (this BehaviorAnalysisController) EventList(ctx *fiber.Ctx) error

事件分析查询

func (BehaviorAnalysisController) FunnelList

func (this BehaviorAnalysisController) FunnelList(ctx *fiber.Ctx) error

漏斗分析查询

func (BehaviorAnalysisController) GetConfigs

func (this BehaviorAnalysisController) GetConfigs(ctx *fiber.Ctx) error

获取分析面板初始化数据

func (BehaviorAnalysisController) GetValues

func (this BehaviorAnalysisController) GetValues(ctx *fiber.Ctx) error

获取上报字段所有的值

func (BehaviorAnalysisController) LoadPropQuotas

func (this BehaviorAnalysisController) LoadPropQuotas(ctx *fiber.Ctx) error

根据事件名查找指标的运算函数

func (BehaviorAnalysisController) RetentionList

func (this BehaviorAnalysisController) RetentionList(ctx *fiber.Ctx) error

留存分析查询

func (BehaviorAnalysisController) TraceList

func (this BehaviorAnalysisController) TraceList(ctx *fiber.Ctx) error

智能路径分析查询

func (BehaviorAnalysisController) UserAttrList

func (this BehaviorAnalysisController) UserAttrList(ctx *fiber.Ctx) error

用户属性分析查询

func (BehaviorAnalysisController) UserEventCountList

func (this BehaviorAnalysisController) UserEventCountList(ctx *fiber.Ctx) error

查询用户访问过的事件统计

func (BehaviorAnalysisController) UserEventDetailList

func (this BehaviorAnalysisController) UserEventDetailList(ctx *fiber.Ctx) error

查询用户访问过的事件详情

func (BehaviorAnalysisController) UserList

func (this BehaviorAnalysisController) UserList(ctx *fiber.Ctx) error

用户列表查询

type GmOperaterController

type GmOperaterController struct {
	BaseController
}

func (GmOperaterController) ListAction

func (this GmOperaterController) ListAction(ctx *fiber.Ctx) error

查看后台操作日志

type ManagerConnMap

type ManagerConnMap struct {
	Conns *sync.Map
}

func NewManagerConnMap

func NewManagerConnMap() *ManagerConnMap

func (*ManagerConnMap) AddManagerConn

func (this *ManagerConnMap) AddManagerConn(manager string, conn *websocket.Conn)

func (*ManagerConnMap) DeleteConn

func (this *ManagerConnMap) DeleteConn(manager string)

type ManagerRoleController

type ManagerRoleController struct {
	BaseController
}

GM角色控制器

func (ManagerRoleController) RoleOptionAction

func (this ManagerRoleController) RoleOptionAction(ctx *Ctx) error

获取Gm角色下拉选

func (ManagerRoleController) RolesAction

func (this ManagerRoleController) RolesAction(ctx *Ctx) error

获取所有的GM 角色

func (ManagerRoleController) RolesAddAction

func (this ManagerRoleController) RolesAddAction(ctx *Ctx) error

新增GM角色

func (ManagerRoleController) RolesDelAction

func (this ManagerRoleController) RolesDelAction(ctx *Ctx) error

删除GM角色

func (ManagerRoleController) RolesUpdateAction

func (this ManagerRoleController) RolesUpdateAction(ctx *Ctx) error

修改GM角色

type ManagerUserController

type ManagerUserController struct {
	BaseController
}

BI用户控制器

func (ManagerUserController) DeleteUserAction

func (this ManagerUserController) DeleteUserAction(ctx *Ctx) error

删除BI用户

func (ManagerUserController) GetUserByIdAction

func (this ManagerUserController) GetUserByIdAction(ctx *Ctx) error

用ID获取用户信息

func (ManagerUserController) Login

func (this ManagerUserController) Login(ctx *Ctx) error

登录

func (ManagerUserController) LogoutAction

func (this ManagerUserController) LogoutAction(ctx *Ctx) error

退出登录

func (ManagerUserController) ModifyPwd

func (this ManagerUserController) ModifyPwd(ctx *Ctx) error

修改自己的密码

func (ManagerUserController) UserAddAction

func (this ManagerUserController) UserAddAction(ctx *Ctx) error

新增BI用户

func (ManagerUserController) UserBanAction

func (this ManagerUserController) UserBanAction(ctx *Ctx) error

禁用或者解封账号

func (ManagerUserController) UserInfo

func (this ManagerUserController) UserInfo(ctx *Ctx) error

用户详细信息

func (ManagerUserController) UserListAction

func (this ManagerUserController) UserListAction(ctx *Ctx) error

BI用户列表

func (ManagerUserController) UserUpdateAction

func (this ManagerUserController) UserUpdateAction(ctx *Ctx) error

修改BI用户信息

type MetaDataController

type MetaDataController struct {
	BaseController
}

func (MetaDataController) AttrManager

func (this MetaDataController) AttrManager(ctx *fiber.Ctx) error

查看上报属性列表

func (MetaDataController) AttrManagerByMeta

func (this MetaDataController) AttrManagerByMeta(ctx *fiber.Ctx) error

查看上报属性列表(通过元事件)

func (MetaDataController) GetAnalyseSelectOptions

func (this MetaDataController) GetAnalyseSelectOptions(ctx *fiber.Ctx) error

获取分析数据时的下拉选配置

func (MetaDataController) GetCalcuSymbolData

func (this MetaDataController) GetCalcuSymbolData(ctx *fiber.Ctx) error

func (MetaDataController) MetaEventList

func (this MetaDataController) MetaEventList(ctx *fiber.Ctx) error

元事件列表

func (MetaDataController) MetaEventListByAttr

func (this MetaDataController) MetaEventListByAttr(ctx *fiber.Ctx) error

元事件列表(通过属性查找)

func (MetaDataController) UpdateAttrInvisible

func (this MetaDataController) UpdateAttrInvisible(ctx *fiber.Ctx) error

修改属性是否可见

func (MetaDataController) UpdateAttrShowName

func (this MetaDataController) UpdateAttrShowName(ctx *fiber.Ctx) error

修改属性显示名

func (MetaDataController) UpdateShowName

func (this MetaDataController) UpdateShowName(ctx *fiber.Ctx) error

更新事件显示名

type PanelController

type PanelController struct {
	BaseController
}

func (PanelController) AddReportTable

func (this PanelController) AddReportTable(ctx *fiber.Ctx) error

新增/修改自己的已存报表

func (PanelController) CopyPannel

func (this PanelController) CopyPannel(ctx *fiber.Ctx) error

复制面板

func (PanelController) DeleteDir

func (this PanelController) DeleteDir(ctx *fiber.Ctx) error

删除文件夹

func (PanelController) DeletePannel

func (this PanelController) DeletePannel(ctx *fiber.Ctx) error

删除面板

func (PanelController) DeleteReportTableByID

func (this PanelController) DeleteReportTableByID(ctx *fiber.Ctx) error

删除自己的已存报表

func (PanelController) FindNameCount

func (this PanelController) FindNameCount(ctx *fiber.Ctx) error

检测报表名称是否重名

func (PanelController) FindRtById

func (this PanelController) FindRtById(ctx *fiber.Ctx) error

通过ID查看报表信息

func (PanelController) GetPannelList

func (this PanelController) GetPannelList(ctx *fiber.Ctx) error

查看面板信息

func (PanelController) MovePannel2Dir

func (this PanelController) MovePannel2Dir(ctx *fiber.Ctx) error

迁移面板到指定文件夹

func (PanelController) NewDir

func (this PanelController) NewDir(ctx *fiber.Ctx) error

新建文件夹

func (PanelController) NewPannel

func (this PanelController) NewPannel(ctx *fiber.Ctx) error

新建面板

func (PanelController) Rename

func (this PanelController) Rename(ctx *fiber.Ctx) error

修改面板名称

func (PanelController) ReportTableList

func (this PanelController) ReportTableList(ctx *fiber.Ctx) error

查看自己的已存报表

func (PanelController) RtListByAppid

func (this PanelController) RtListByAppid(ctx *fiber.Ctx) error

获取面板的报表相关属性

func (PanelController) UpdatePannelManager

func (this PanelController) UpdatePannelManager(ctx *fiber.Ctx) error

分享面板给其他成员

func (PanelController) UpdatePannelRt

func (this PanelController) UpdatePannelRt(ctx *fiber.Ctx) error

修改面板的报表排序

type RbacController

type RbacController struct {
	BaseController
}

接口访问权限管理 直接放缓存

func (RbacController) UrlConfig

func (this RbacController) UrlConfig(ctx *fiber.Ctx) error

获取接口路由信息

type RealDataController

type RealDataController struct {
	BaseController
}

func (RealDataController) AddDebugDeviceID

func (this RealDataController) AddDebugDeviceID(ctx *fiber.Ctx) error

添加DEBUG设备ID

func (RealDataController) DebugDeviceIDList

func (this RealDataController) DebugDeviceIDList(ctx *fiber.Ctx) error

查看测试设备列表

func (RealDataController) DelDebugDeviceID

func (this RealDataController) DelDebugDeviceID(ctx *fiber.Ctx) error

删除测试设备

func (RealDataController) EventFailDesc

func (this RealDataController) EventFailDesc(ctx *fiber.Ctx) error

事件失败详情

func (RealDataController) FailDataDesc

func (this RealDataController) FailDataDesc(ctx *fiber.Ctx) error

抽样示例

func (RealDataController) FailDataList

func (this RealDataController) FailDataList(ctx *fiber.Ctx) error

错误数据列表

func (RealDataController) List

func (this RealDataController) List(ctx *fiber.Ctx) error

查看实时数据列表

func (RealDataController) ReportCount

func (this RealDataController) ReportCount(ctx *fiber.Ctx) error

查看所有上报数据情况

type ReportController

type ReportController struct {
	BaseController
}

func (ReportController) ReportAction

func (this ReportController) ReportAction(ctx *fasthttp.RequestCtx)

上报接口

type UserGroupController

type UserGroupController struct {
	BaseController
}

func (UserGroupController) AddUserGroup

func (this UserGroupController) AddUserGroup(ctx *fiber.Ctx) error

新增用户分群

func (UserGroupController) DeleteUserGroup

func (this UserGroupController) DeleteUserGroup(ctx *fiber.Ctx) error

删除用户分群

func (UserGroupController) ModifyUserGroup

func (this UserGroupController) ModifyUserGroup(ctx *fiber.Ctx) error

修改用户分群

func (UserGroupController) UserGroupList

func (this UserGroupController) UserGroupList(ctx *fiber.Ctx) error

用户分群列表

func (UserGroupController) UserGroupSelect

func (this UserGroupController) UserGroupSelect(ctx *fiber.Ctx) error

用户分群下拉选

type Word

type Word struct {
	Danci        string   `json:"danci"`
	ChineseFanyi []string `json:"chinese_fanyi"`
	YingYingBiao string   `json:"ying_ying_biao"`
	MeiYingBiao  string   `json:"mei_ying_biao"`
	Additional   string   `json:"additional"`
	WebTrans     struct {
		TWebTrans map[string]string `json:"t_web_trans"`
		WebPhrase map[string]string `json:"web_phrase"`
		TPETrans  map[string][]struct {
			Title      string `json:"title"`
			Additional string `json:"additional"`
			Source     string `json:"source"`
			Trans      string `json:"trans"`
		} `json:"tpe_trans"`
		TEETrans map[string][]struct {
			Def      string `json:"def"`
			Juzi     string `json:"juzi"`
			TongYiCi string `json:"tong_yi_ci"`
		} `json:"tee_trans"`
		TEETransName map[string]string `json:"tee_trans_name"`
	} `json:"web_trans"`
	WordGroup    map[string]string `json:"word_group"`
	JinYiCi      map[string]string `json:"jin_yi_ci"`
	TongGengCi   map[string]string `json:"tong_geng_ci"`
	CiYuBianXi   map[string]string `json:"ci_yu_bian_xi"`
	ShuangYuLiJu map[string]string `json:"shuang_yu_li_ju"`
	YingAudio    string            `json:"ying_audio"`
	MeiAudio     string            `json:"mei_audio"`
}

Jump to

Keyboard shortcuts

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