def

package
v0.0.0-...-592b0ac Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUB = "SUB" //订阅
	PUB = "PUB" //发布
)
View Source
const UNKNOWN = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type OPT

type OPT = int64
const (
	OPT_ADD    OPT = 0 //增加
	OPT_MODIFY OPT = 1 //修改
	OPT_DEL    OPT = 2 //删除
)

type PageInfo

type PageInfo struct {
	Page     int64 `json:"page" form:"page"`         // 页码
	PageSize int64 `json:"pageSize" form:"pageSize"` // 每页大小
}

func (PageInfo) GetLimit

func (p PageInfo) GetLimit() int64

func (PageInfo) GetOffset

func (p PageInfo) GetOffset() int64

type UserInfoType

type UserInfoType uint8
const (
	Uid        UserInfoType = iota //用户UID
	InviterUid                     //邀请人用户id
	UserName                       //用户登录名
	GroupId                        //用户组id
	Email                          //邮箱
	Phone                          //手机号
	Wechat                         //微信
	InfoMax                        //结束
	AuthId                         //权限id
)

type UserStatus

type UserStatus = int64
const (
	NotRegistStatus UserStatus = iota //未注册完成状态只注册了第一步
	NomalStatus                       //正常状态
)

Jump to

Keyboard shortcuts

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