domain

package
v0.0.0-...-02d2a03 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: GPL-3.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 ArtStatus

type ArtStatus uint8
const (
	ArtStatusUnknown ArtStatus = iota
	ArtStatusPublished
	ArtStatusUnPublished
	ArtStatusPrivate
)

func (ArtStatus) String

func (s ArtStatus) String() string

func (ArtStatus) ToUInt8

func (s ArtStatus) ToUInt8() uint8

type Article

type Article struct {
	Id      int64
	Title   string
	Content string
	Author  Author
	Status  ArtStatus
	CTime   int64
	UTime   int64
}

func (Article) Abstract

func (art Article) Abstract() string

type Author

type Author struct {
	Id   int64
	Name string
}

type User

type User struct {
	Email    string
	Password string
	Phone    string
	UserName string
	Birthday string
	Intro    string
	Id       int64
}

Jump to

Keyboard shortcuts

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