model

package
v0.0.0-...-34056af Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

# @Author ww # @Time 2019/11/5 11:50 # @File model.go

# @Author ww # @Time 2019/11/5 13:45 # @File msg.go

# @Author ww # @Time 2019/11/5 11:50 # @File mysql.go

Index

Constants

View Source
const (
	// 消息发送方式
	EMAIL = iota
	SMS
	PHONE
	// 消息类型:警告,恢复
	ALERT = iota
	RESUME
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg struct {
	Id           string `json:"id"`         // 消息id
	Ts           int64  `json:"ts"`         // 时间戳
	Type         int    `json:"type"`       // 消息类型
	Content      string `json:"content"`    // 消息内容
	Confirm      bool   `json:"confirm"`    // 消息是否确认
	Ts_confirm   int64  `json:"ts_confirm"` // 消息确认时间
	Type_confirm int    // 消息确认方式
}

func NewMsg

func NewMsg() *Msg

Jump to

Keyboard shortcuts

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