Files
EdgeAPI/internal/db/models/message_media_instance_model.go
2022-03-22 21:45:07 +08:00

33 lines
1.1 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
import "github.com/iwind/TeaGo/dbs"
// MessageMediaInstance 消息媒介接收人
type MessageMediaInstance struct {
Id uint32 `field:"id"` // ID
Name string `field:"name"` // 名称
IsOn bool `field:"isOn"` // 是否启用
MediaType string `field:"mediaType"` // 媒介类型
Params dbs.JSON `field:"params"` // 媒介参数
Description string `field:"description"` // 备注
Rate dbs.JSON `field:"rate"` // 发送频率
State uint8 `field:"state"` // 状态
HashLife int32 `field:"hashLife"` // HASH有效期
}
type MessageMediaInstanceOperator struct {
Id interface{} // ID
Name interface{} // 名称
IsOn interface{} // 是否启用
MediaType interface{} // 媒介类型
Params interface{} // 媒介参数
Description interface{} // 备注
Rate interface{} // 发送频率
State interface{} // 状态
HashLife interface{} // HASH有效期
}
func NewMessageMediaInstanceOperator() *MessageMediaInstanceOperator {
return &MessageMediaInstanceOperator{}
}