dto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	rbac.BaseDTO
}

Base ... DTO

type Example

type Example struct {
	// ID dxo.ExampleID `json:"id"`
	Base

	Foo string `json:"foo"`
	Bar int    `json:"bar"`
}

Example ... VO

type Message

type Message struct {
	Type MessageType `json:"type"`

	ToAddr   string `json:"to"`
	FromAddr string `json:"from"`

	ToUser   string `json:"to_user"`
	FromUser string `json:"from_user"`

	Title       string `json:"title"`
	ContentType string `json:"content_type"`
	Content     string `json:"content"`
}

Message ... dto

type MessageType

type MessageType string

MessageType 表示消息类型

const (
	TypeSMS   MessageType = "sms"
	TypeEmail MessageType = "email"
)

定义消息类型

Jump to

Keyboard shortcuts

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