domain

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

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArticleStatusUnknown = iota
	ArticleStatusUnpublished
	ArticleStatusPublished
	ArticleStatusPrivate
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Id      int64
	Author  Author
	Topic   string
	Status  ArticleStatus
	Content string
	Ctime   time.Time
	Utime   time.Time
}

func (Article) Abstract

func (a Article) Abstract() string

type ArticleStatus

type ArticleStatus uint8

func (ArticleStatus) ToUint8

func (s ArticleStatus) ToUint8() uint8

type AsyncSms

type AsyncSms struct {
	Id        int64
	TplId     string
	RetryMax  int
	PhoneNums []string
	Args      []string
}

type Author

type Author struct {
	Id   int64
	Name string
}

type PublishedArticle

type PublishedArticle Article

func (PublishedArticle) Abstract

func (a PublishedArticle) Abstract() string

type User

type User struct {
	// 可以用int64
	// 敏感信息PII
	Id       int64
	Nickname string
	Password string
	Email    string
	Phone    string

	Birthday time.Time
	AboutMe  string

	// UTC
	Ctime time.Time
}

type UserActivity

type UserActivity struct {
	Id      int64
	ReadCnt int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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