daos

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceWarmDao

type DeviceWarmDao struct {
	Db *gorm.DB `inject:"-"`
}

func NewDeviceWarmDao

func NewDeviceWarmDao() *DeviceWarmDao

func (*DeviceWarmDao) CountDeviceUserList

func (this *DeviceWarmDao) CountDeviceUserList() (int, error)

func (*DeviceWarmDao) CountDeviceUserRelationShipList

func (this *DeviceWarmDao) CountDeviceUserRelationShipList(deviceId string) (int, error)

func (*DeviceWarmDao) DeleteDeviceUserRelationship

func (this *DeviceWarmDao) DeleteDeviceUserRelationship(deviceId string, unbind string) error

func (*DeviceWarmDao) FindDeviceWarmByDeviceId

func (this *DeviceWarmDao) FindDeviceWarmByDeviceId(uid string) *models.DeviceWarmModel

func (*DeviceWarmDao) GetDeviceWarmById

func (this *DeviceWarmDao) GetDeviceWarmById(uid string) goft.Query

func (*DeviceWarmDao) GetDeviceWarmList

func (this *DeviceWarmDao) GetDeviceWarmList() goft.SimpleQuery

func (*DeviceWarmDao) InsertDeviceUserInfo

func (this *DeviceWarmDao) InsertDeviceUserInfo(form *models.DeviceUserModel) error

func (*DeviceWarmDao) InsertDeviceUserPhoneInfo

func (this *DeviceWarmDao) InsertDeviceUserPhoneInfo(form *models.DeviceUserPhoneModel) error

* alter table msys_device_user_phone add unique index(device_id,phone);

func (*DeviceWarmDao) InsertDeviceUserRelationship

func (this *DeviceWarmDao) InsertDeviceUserRelationship(deviceId string, bind string) error

func (*DeviceWarmDao) IsExistDeviceUser

func (this *DeviceWarmDao) IsExistDeviceUser(id string) (int, error)

func (*DeviceWarmDao) IsExistDeviceUserPhone

func (this *DeviceWarmDao) IsExistDeviceUserPhone(phone string) (int, error)

func (*DeviceWarmDao) IsExistDeviceUserRelationShip

func (this *DeviceWarmDao) IsExistDeviceUserRelationShip(id string, bind string) (int, error)

func (*DeviceWarmDao) UpdateDeviceUserInfo

func (this *DeviceWarmDao) UpdateDeviceUserInfo(form *models.DeviceUserModel) error

type RongCloudDao

type RongCloudDao struct {
	Db *gorm.DB `inject:"-"`
}

func NewRongCloudDao

func NewRongCloudDao() *RongCloudDao

func (*RongCloudDao) GetDeviceWarmList

func (this *RongCloudDao) GetDeviceWarmList() goft.SimpleQuery

func (*RongCloudDao) InsertRongCloudInfo

func (this *RongCloudDao) InsertRongCloudInfo(form *models.RongCloundAccountModel) error

func (*RongCloudDao) IsExist

func (this *RongCloudDao) IsExist(id string) (int, error)

func (*RongCloudDao) UpdateRongCloudInfo

func (this *RongCloudDao) UpdateRongCloudInfo(form *models.RongCloundAccountModel) error

type ServiceCenterDao

type ServiceCenterDao struct {
	Db *gorm.DB `inject:"-"`
}

func NewServiceCenterDao

func NewServiceCenterDao() *ServiceCenterDao

func (*ServiceCenterDao) CallServiceCenter

func (this *ServiceCenterDao) CallServiceCenter(deviceId string, messageType string) *models.ServiceCenterModel

func (*ServiceCenterDao) LoginServiceCenter

func (this *ServiceCenterDao) LoginServiceCenter(id string, applicationType string) []*models.DeviceUserModelSimple

func (*ServiceCenterDao) UpdateDeviceUserInfo

func (this *ServiceCenterDao) UpdateDeviceUserInfo(form *models.DeviceUserModel) error

Jump to

Keyboard shortcuts

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