controllers

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceWarmController

type DeviceWarmController struct {
	Db                *gorm.DB                    `inject:"-"`
	DeviceWarmService *services.DeviceWarmService `inject:"-"`
}

func NewDeviceWarmController

func NewDeviceWarmController() *DeviceWarmController

func (*DeviceWarmController) BindRelationShip

func (this *DeviceWarmController) BindRelationShip(ctx *gin.Context) goft.Json

* 4,通过设备ID添加好友接口,YYD上传数据:本地设备id,添加的设备id。A55下发数据:是否添加成功等

func (*DeviceWarmController) Build

func (this *DeviceWarmController) Build(goft *goft.Goft)

func (*DeviceWarmController) FindDeviceWarmByDeviceId

func (this *DeviceWarmController) FindDeviceWarmByDeviceId(ctx *gin.Context) goft.Json

func (*DeviceWarmController) GetDeviceUserInfoByDeviceId

func (this *DeviceWarmController) GetDeviceUserInfoByDeviceId(ctx *gin.Context) goft.Json

* 3,获取指定设备ID的视频聊吧相关信息接口,YYD上传数据:设备id,A55下发数据:设备id的名称,头像等

func (*DeviceWarmController) GetDeviceUserList

func (this *DeviceWarmController) GetDeviceUserList(ctx *gin.Context) goft.Json

* 5,获取其它所有设备的接口:YYD上传数据:本地设备id。A55下发数据:所有设备信息

func (*DeviceWarmController) GetDeviceUserRelationShipList

func (this *DeviceWarmController) GetDeviceUserRelationShipList(ctx *gin.Context) goft.Json

* 6,获取该设备的通讯录列表接口:YYD上传数据:本地设备id,A55下发数据:该设备的所有好友信息(包括可以进行通讯的融云token等)

func (*DeviceWarmController) GetDeviceWarmById

func (this *DeviceWarmController) GetDeviceWarmById(ctx *gin.Context) goft.Query

func (*DeviceWarmController) GetDeviceWarmExceptionPicture

func (this *DeviceWarmController) GetDeviceWarmExceptionPicture(ctx *gin.Context) string

func (*DeviceWarmController) GetDeviceWarmHistory

func (this *DeviceWarmController) GetDeviceWarmHistory(ctx *gin.Context) goft.SimpleQuery

func (*DeviceWarmController) GetDeviceWarmHistory2

func (this *DeviceWarmController) GetDeviceWarmHistory2(ctx *gin.Context) goft.Json

func (*DeviceWarmController) GetDeviceWarmList

func (this *DeviceWarmController) GetDeviceWarmList(ctx *gin.Context) goft.Json

func (*DeviceWarmController) Name

func (this *DeviceWarmController) Name() string

func (*DeviceWarmController) UnbindRelationShip

func (this *DeviceWarmController) UnbindRelationShip(ctx *gin.Context) goft.Json

* 7,通过设备ID解绑好友接口,YYD上传数据:本地设备id,解绑的设备id。A55下发数据:是否添加成功等

type DeviceWarmMQController

type DeviceWarmMQController struct {
	DeviceWarmService *services.DeviceWarmService `inject:"-"`
	SysConfig         *goft.SysConfig             `inject:"-"`
}

func NewDeviceWarmMQController

func NewDeviceWarmMQController() *DeviceWarmMQController

func (*DeviceWarmMQController) Build

func (this *DeviceWarmMQController) Build(goft *goft.Goft)

func (*DeviceWarmMQController) DeviceWarmMQInit

func (this *DeviceWarmMQController) DeviceWarmMQInit(ctx *gin.Context) goft.Json

func (*DeviceWarmMQController) DeviceWarmUpload

func (this *DeviceWarmMQController) DeviceWarmUpload(ctx *gin.Context) goft.Json

func (*DeviceWarmMQController) Name

func (this *DeviceWarmMQController) Name() string

type DeviceWarmMQTTController

type DeviceWarmMQTTController struct {
	DeviceWarmMQTTService *services.DeviceWarmMQTTService `inject:"-"`
	SysConfig             *goft.SysConfig                 `inject:"-"`
}

func NewDeviceWarmMQTTController

func NewDeviceWarmMQTTController() *DeviceWarmMQTTController

func (*DeviceWarmMQTTController) Build

func (this *DeviceWarmMQTTController) Build(goft *goft.Goft)

func (*DeviceWarmMQTTController) Name

func (this *DeviceWarmMQTTController) Name() string

type RongCloudController

type RongCloudController struct {
	Db               *gorm.DB                   `inject:"-"`
	RongCloudService *services.RongCloudService `inject:"-"`
}

func NewRongCloudController

func NewRongCloudController() *RongCloudController

func (*RongCloudController) Build

func (this *RongCloudController) Build(goft *goft.Goft)

func (*RongCloudController) GetRongcloudTokenByDeviceId

func (this *RongCloudController) GetRongcloudTokenByDeviceId(ctx *gin.Context) goft.Json

* 1,融云的通讯token获取接口,YYD上传数据:设备id。A55下发数据:融云的通讯token

func (*RongCloudController) GetRongcloudTokenByPhoneDeviceId

func (this *RongCloudController) GetRongcloudTokenByPhoneDeviceId(ctx *gin.Context) goft.Json

* 2, APP扫码绑定设备接口,YYD上传数据:设备id,手机id。A55下发数据:是否绑定成功,手机端需要的融云通讯token等

func (*RongCloudController) Name

func (this *RongCloudController) Name() string

func (*RongCloudController) UploadRongcloudInfo

func (this *RongCloudController) UploadRongcloudInfo(ctx *gin.Context) goft.Json

type ServiceCenterController

type ServiceCenterController struct {
	Db                   *gorm.DB                       `inject:"-"`
	ServiceCenterService *services.ServiceCenterService `inject:"-"`
}

func NewServiceCenterController

func NewServiceCenterController() *ServiceCenterController

func (*ServiceCenterController) Build

func (this *ServiceCenterController) Build(goft *goft.Goft)

func (*ServiceCenterController) CallServiceCenter

func (this *ServiceCenterController) CallServiceCenter(ctx *gin.Context) goft.Json

* 1、运维值班中心会有多个客服参与值班,当用户通过机器人端或者家属端呼叫值班中心时,值班中心需要提供一个音频连接的ID给机器人端/家属端,用户端发送ID号请求时,参数包括:

设备类型(机器人/家属端APP),设备或APP的ID,(机器人/家属端APP)的融云ID,请求时间,呼叫类型,保留字段。
func (this *ServiceCenterController) CallServiceCenter(ctx *gin.Context) goft.Json {
	sql:=fmt.Sprintf("select b.rc_id,b.user_id from msys_service_center a inner join sys_user b on a.service_id=b.user_id where a.service_status='1' and a.service_type='3' and b.status=1",deviceId)
	ret:=goft.SimpleQuery(sql).WithKey("data").Get()
	return ret
}

func (*ServiceCenterController) LoginServiceCenter

func (this *ServiceCenterController) LoginServiceCenter(ctx *gin.Context) goft.Json

func (*ServiceCenterController) Name

func (this *ServiceCenterController) Name() string

func (*ServiceCenterController) UpdateDeviceUserInfo

func (this *ServiceCenterController) UpdateDeviceUserInfo(ctx *gin.Context) goft.Json

Jump to

Keyboard shortcuts

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