entities

package
v0.0.0-...-786156a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BizException

type BizException struct {
	Status int `json:"status"`

	Code string `json:"code"`

	Message string `json:"message"`

	Trace string `json:"trace"`
}

BizException @Description: 业务异常,比如用户不存在,用户已经存在等,都可以panic

func (*BizException) Error

func (e *BizException) Error() string

type LoginDTO

type LoginDTO struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

type NewCommentDto

type NewCommentDto struct {
	Name string `json:"content" form:"content"`
}

NewCommentDto comment dto

type OneCode

type OneCode struct {
	Code  int
	Times int
}

one code struct

type OneIp

type OneIp struct {
	Ip         string
	CodeStatus []*OneCode
}

another ip

type StatisticDTO

type StatisticDTO struct {
	Ips []*OneIp
}

stat strct

type TagDTO

type TagDTO struct {
	Name string `json:"name" form:"name"`
	Num  int    `json:"num" form:"num"`
}

TagDTO new tag

Jump to

Keyboard shortcuts

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