domain

package
v0.0.0-...-2cadb06 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Id      int64
	Title   string
	Content string
	Author  Author
	Status  ArticleStates
}

func (*Article) Abstract

func (a *Article) Abstract() string

type ArticleStates

type ArticleStates uint8
const (
	ArticleStatusUnknown ArticleStates = iota
	ArticleStatusUnpublished
	ArticleStatusPublished
	ArticleStatusPrivate
)

func (ArticleStates) ToUint8

func (s ArticleStates) ToUint8() uint8

type Author

type Author struct {
	Id   int64
	Name string
}

type User

type User struct {
	Id       int64
	Email    string
	Password string
	Phone    string
}

User 用户业务对象

Jump to

Keyboard shortcuts

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