openInterface

package
v1.0.6-0...-cb436d8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package openInterface @author <chengjiang@buffalo-robot.com> @date 2023/3/2 @note

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryParam

type QueryParam struct {
	Page     int64
	PageSize int64
	Name     string // 姓名,手机号,身份证。
}

type SocketIOStore

type SocketIOStore interface {
	BroadcastToRoom(namespace string, room string, event string, args ...interface{}) bool
}

type UserInfo

type UserInfo struct {
	Id     int64
	Name   string
	Gender int32
	Phone  string
	Tag    string // 医/患
	Avatar string // 用户头像图片链接

}

type UserStore

type UserStore interface {
	// GetUserInfo 获取用户信息
	GetUserInfo(ids []int64) (map[int64]UserInfo, error)
	GetSimpleUserInfo(ids []int64) (map[int64]UserInfo, error)
	// GetAllUserIDList 获取所有用户的id,将其加入初始的通知群。初始群为:系统通知,初始机器人为:系统通知
	GetAllUserIDList() (manageUsers []int64, clientUsers []int64, err error)

	GetDoctorBindPatientsList() (doctor2clientUsers map[int64][]int64, doctorId2Name map[int64]string, err error)

	// GetUserInfoFilter 患者用户查询接口
	GetUserInfoFilter(ctx context.Context, param *QueryParam) ([]*UserInfo, int64, error)
	GetPatientInfoFilter(ctx context.Context, param *QueryParam) ([]*UserInfo, int64, error)
}

UserStore @Author @Description //for user and robot @Date 17:15 2023/3/1

Jump to

Keyboard shortcuts

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