backend

package
v0.0.0-...-9d2f815 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 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 CreateNodeReq

type CreateNodeReq struct {
	Name  string `v:"required#请输入节点名称" form:"title"`
	Alias string `v:"required#请输入节点别名" form:"alias"`
	Sort  uint8  `v:"required|integer#请填写排序|排序格式错误" form:"sort"`
	State uint8  `v:"required|in:0,1#请选择节点状态" form:"state"`
	Desc  string `v:"required#请输入节点简介" form:"desc"`
}

type EditNodeReq

type EditNodeReq struct {
	Name  string `v:"required#请输入节点名称" form:"title"`
	Alias string `v:"required#请输入节点别名" form:"alias"`
	Sort  uint8  `v:"required|integer#请填写排序|排序格式错误" form:"sort"`
	State uint8  `v:"required|in:0,1#请选择节点状态" form:"state"`
	Desc  string `v:"required#请输入节点简介" form:"desc"`
}

type GetNodeListReq

type GetNodeListReq struct {
	Keywords string `form:"keywords"`
}

type GetNoticeListReq

type GetNoticeListReq struct {
	Page     int    `form:"page"`
	Keywords string `form:"keywords"`
}

type GetTopicListReq

type GetTopicListReq struct {
	Page     int    `form:"page"`
	Keywords string `form:"keywords"`
	UserID   string `form:"user_id"`
}

type GetUserListReq

type GetUserListReq struct {
	Page     int    `form:"page"`
	Keywords string `form:"keywords"`
}

type PublishNoticeReq

type PublishNoticeReq struct {
	Title     string `v:"required#请输入消息标题" form:"title"`
	TargetId  string `form:"target_id"`
	Content   string `v:"required#请输入消息内容" form:"content"`
	MDContent string `v:"required#请输入消息内容" form:"md_content"`
}

type SystemNotices

type SystemNotices struct {
	model.SystemNotices
	Publisher  model.Users  `gorm:"foreignKey:user_id"`
	TargetUser *model.Users `gorm:"foreignKey:target_id"`
}

type Topic

type Topic struct {
	model.Topics
	Publisher model.Users `gorm:"foreignKey:user_id"`
	Node      model.Nodes `gorm:"foreignKey:node_id"`
}

type User

type User struct {
	model.Users
}

Jump to

Keyboard shortcuts

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