models

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuChatItem

type FeishuChatItem struct {
	common.NoPKModel `json:"-"`
	ConnectionId     uint64 `gorm:"primaryKey"`
	ChatId           string `json:"chat_id" gorm:"primaryKey"`
	Avatar           string `json:"avatar"`
	Description      string `json:"description"`
	External         bool   `json:"external"`
	Name             string `json:"name"`
	OwnerId          string `json:"owner_id"`
	OwnerIdType      string `json:"owner_id_type"`
	TenantKey        string `json:"tenant_key"`
}

func (FeishuChatItem) TableName

func (FeishuChatItem) TableName() string

type FeishuConn

type FeishuConn struct {
	helper.RestConnection `mapstructure:",squash"`
	helper.AppKey         `mapstructure:",squash"`
}

FeishuConn holds the essential information to connect to the Feishu API

func (*FeishuConn) PrepareApiClient

func (conn *FeishuConn) PrepareApiClient(apiClient apihelperabstract.ApiClientAbstract) errors.Error

type FeishuConnection

type FeishuConnection struct {
	helper.BaseConnection `mapstructure:",squash"`
	FeishuConn            `mapstructure:",squash"`
}

FeishuConnection holds FeishuConn plus ID/Name for database storage

func (FeishuConnection) TableName

func (FeishuConnection) TableName() string

type FeishuMeetingTopUserItem

type FeishuMeetingTopUserItem struct {
	common.NoPKModel `json:"-"`
	ConnectionId     uint64    `gorm:"primaryKey"`
	StartTime        time.Time `gorm:"primaryKey"`
	Name             string    `json:"name" gorm:"primaryKey;type:varchar(255)"`
	MeetingCount     string    `json:"meeting_count" gorm:"type:varchar(255)"`
	MeetingDuration  string    `json:"meeting_duration" gorm:"type:varchar(255)"`
	UserType         int64     `json:"user_type"`
}

func (FeishuMeetingTopUserItem) TableName

func (FeishuMeetingTopUserItem) TableName() string

type FeishuMessage

type FeishuMessage struct {
	common.NoPKModel `json:"-"`
	ConnectionId     uint64    `gorm:"primaryKey"`
	MessageId        string    `json:"message_id" gorm:"primaryKey"`
	Content          string    `json:"content"`
	ChatId           string    `json:"chat_id"`
	MsgType          string    `json:"msg_type"`
	ParentId         string    `json:"parent_id"`
	RootId           string    `json:"root_id"`
	SenderId         string    `json:"id"`
	SenderIdType     string    `json:"id_type"`
	SenderType       string    `json:"sender_type"`
	Deleted          bool      `json:"deleted"`
	CreateTime       time.Time `json:"create_time"`
	UpdateTime       time.Time `json:"update_time"`
	Updated          bool      `json:"updated"`
}

func (FeishuMessage) TableName

func (FeishuMessage) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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