models

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	AppId       string `json:"app_id"`
	AppName     string `json:"app_name"`
	AppIcon     string `json:"app_icon"`
	AppDesc     string `json:"app_desc"`
	AppUrl      string `json:"app_url"`
	AppOrder    int    `json:"app_order"`
	CreatedTime int64  `json:"created_time"`
	UpdatedTime int64  `json:"updated_time"`

	AppKey string `json:"app_key,omitempty"`
}

type ApplicationIds

type ApplicationIds struct {
	AppKey string   `json:"app_key"`
	AppIds []string `json:"app_ids"`
}

type Applications

type Applications struct {
	Items  []*Application `json:"items"`
	Offset string         `json:"offset,omitempty"`
	Page   int            `json:"page"`
	Size   int            `json:"size"`
}

type BanUser

type BanUser struct {
	UserId        string `json:"user_id"`
	EndTime       int64  `json:"end_time"`
	EndTimeOffset int64  `json:"end_time_offset"`
}

type BanUsersReq

type BanUsersReq struct {
	AppKey string     `json:"app_key"`
	Items  []*BanUser `json:"items"`
}

type Bot added in v1.0.7

type Bot struct {
	BotId       string       `json:"bot_id"`
	Nickname    string       `json:"nickname"`
	Avatar      string       `json:"avatar"`
	Pinyin      string       `json:"pinyin"`
	UserType    int          `json:"user_type"`
	BotConf     *BotConf     `json:"bot_conf"`
	BotSettings *BotSettings `json:"bot_settings"`

	CreatedTime int64 `json:"created_time"`
}

type BotConf added in v1.0.7

type BotConf struct {
	BotId    string `json:"bot_id"`
	Url      string `json:"url"`
	ApiKey   string `json:"api_key"`
	IsStream bool   `json:"is_stream"`
}

type BotReq added in v1.0.7

type BotReq struct {
	AppKey      string            `json:"app_key"`
	BotId       string            `json:"bot_id"`
	Nickname    string            `json:"nickname"`
	Avatar      string            `json:"avatar"`
	Pinyin      string            `json:"pinyin"`
	BotConf     *BotConf          `json:"bot_conf"`
	BotSettings *BotSettings      `json:"bot_settings"`
	ExtFields   map[string]string `json:"ext_fields"`
}

type BotSettings added in v1.0.7

type BotSettings struct {
	OnlyMentioned bool `json:"only_mentioned"`
}

type Bots added in v1.0.7

type Bots struct {
	Items  []*Bot `json:"items"`
	Offset string `json:"offset"`
}

type DelHisMsgsReq

type DelHisMsgsReq struct {
	AppKey      string                   `json:"app_key"`
	FromId      string                   `json:"from_id"`
	TargetId    string                   `json:"target_id"`
	ChannelType int                      `json:"channel_type"`
	Msgs        []*juggleimsdk.SimpleMsg `json:"msgs"`
}

type EmailConf

type EmailConf struct {
	AppKey string                        `json:"app_key"`
	Conf   *servicemodels.MailEngineConf `json:"conf"`
}

type FileType

type FileType int32
const (
	FileType_DefaultFileType FileType = 0
	FileType_Image           FileType = 1
	FileType_Audio           FileType = 2
	FileType_Video           FileType = 3
	FileType_File            FileType = 4
	FileType_Log             FileType = 5
)

type GlobalConversation

type GlobalConversation struct {
	Sender      *User  `json:"sender"`
	Receiver    *User  `json:"receiver"`
	Group       *Group `json:"group"`
	ChannelType int    `json:"channel_type"`

	Time int64 `json:"time"`
}

type GlobalConversations

type GlobalConversations struct {
	Items []*GlobalConversation `json:"items"`
}

type Group

type Group struct {
	GroupId       string `json:"group_id"`
	GroupName     string `json:"group_name"`
	GroupPortrait string `json:"group_portrait"`
	MemberCount   int    `json:"member_count"`
	Owner         *User  `json:"owner,omitempty"`

	CreatedTime int64 `json:"created_time"`
}

type GroupIds

type GroupIds struct {
	AppKey   string   `json:"app_key"`
	GroupIds []string `json:"group_ids"`
}

type Groups

type Groups struct {
	Items  []*Group `json:"items"`
	Offset string   `json:"offset,omitempty"`
}

type HisMsg

type HisMsg struct {
	Sender     *User  `json:"sender"`
	MsgId      string `json:"msg_id"`
	MsgTime    int64  `json:"msg_time"`
	MsgType    string `json:"msg_type"`
	MsgContent string `json:"msg_content"`
}

type HisMsgs

type HisMsgs struct {
	Msgs []*HisMsg `json:"items"`
}

type OssType

type OssType int32
const (
	OssType_DefaultOss OssType = 0
	OssType_QiNiu      OssType = 1
	OssType_S3         OssType = 2
	OssType_Minio      OssType = 3
	OssType_Oss        OssType = 4
)

type PreSignResp

type PreSignResp struct {
	Url         string `json:"url"`
	ObjKey      string `json:"obj_key"`
	Policy      string `json:"policy"`
	SignVersion string `json:"sign_version"`
	Credential  string `json:"credential"`
	Date        string `json:"date"`
	Signature   string `json:"signature"`
}

type QiNiuCredResp

type QiNiuCredResp struct {
	Domain string `json:"domain"`
	Token  string `json:"token"`
}

type QryFileCredReq

type QryFileCredReq struct {
	AppKey   string   `json:"app_key"`
	FileType FileType `json:"file_type"`
	Ext      string   `json:"ext"`
}

type QryFileCredResp

type QryFileCredResp struct {
	OssType       OssType        `json:"oss_type"`
	QiNiuCredResp *QiNiuCredResp `json:"qiniu_resp"`
	PreSignResp   *PreSignResp   `json:"pre_sign_resp"`
}

type RecallHisMsgReq

type RecallHisMsgReq struct {
	AppKey      string            `json:"app_key"`
	FromId      string            `json:"from_id"`
	TargetId    string            `json:"target_id"`
	ChannelType int               `json:"channel_type"`
	MsgId       string            `json:"msg_id"`
	MsgTime     int64             `json:"msg_time"`
	Exts        map[string]string `json:"exts"`
}

type User

type User struct {
	UserId   string `json:"user_id"`
	Nickname string `json:"nickname"`
	Avatar   string `json:"avatar"`
	Pinyin   string `json:"pinyin"`
	UserType int    `json:"user_type"`
	Phone    string `json:"phone"`
	Email    string `json:"email"`
	Account  string `json:"account"`
	Status   int32  `json:"status"`

	CreatedTime int64 `json:"created_time"`
}

type Users

type Users struct {
	Items  []*User `json:"items"`
	Offset string  `json:"offset"`
}

Jump to

Keyboard shortcuts

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