models

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcement

type Announcement struct {
	ID         primitive.ObjectID `bson:"_id,omitempty"           json:"id,omitempty"` // 主键
	Receiver   string             `bson:"receiver"                json:"receiver"`     // 发送者
	Content    *Content           `bson:"content"                 json:"content"`      // 消息内容
	CreateTime int64              `bson:"create_time"             json:"create_time"`  // 消息创建时间
	IsRead     bool               `bson:"is_read"                 json:"is_read"`      // 是否已读
}

func (Announcement) TableName

func (Announcement) TableName() string

type Content

type Content struct {
	Title     string `bson:"title"                 json:"title"`      // 公告标题
	Priority  int    `bson:"priority"              json:"priority"`   // 公告级别
	Content   string `bson:"content"               json:"content"`    // 公告内容
	StartTime int64  `bson:"start_time"            json:"start_time"` // 公告开始时间
	EndTime   int64  `bson:"end_time"              json:"end_time"`   // 公告结束时间
}

type OperationLog

type OperationLog struct {
	ID             primitive.ObjectID `bson:"_id,omitempty"               json:"id,omitempty"`
	Username       string             `bson:"username"                    json:"username"`
	ProductName    string             `bson:"product_name"                json:"product_name"`
	Method         string             `bson:"method"                      json:"method"`
	PermissionUUID string             `bson:"permission_uuid"             json:"permission_uuid"`
	Function       string             `bson:"function"                    json:"function"`
	Name           string             `bson:"name"                        json:"name"`
	RequestBody    string             `bson:"request_body"                json:"request_body"`
	Status         int                `bson:"status"                      json:"status"`
	CreatedAt      int64              `bson:"created_at"                  json:"created_at"`
}

func (OperationLog) TableName

func (OperationLog) TableName() string

Jump to

Keyboard shortcuts

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