admin

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func ToDBAdminUpdate

func ToDBAdminUpdate(req *admin.AdminUpdateInfoReq) (map[string]any, error)

func ToDBAdminUpdatePassword

func ToDBAdminUpdatePassword(password string) (map[string]any, error)

func ToDBAppletUpdate

func ToDBAppletUpdate(req *admin.UpdateAppletReq) (map[string]any, error)

func ToDBInvitationRegisterUpdate

func ToDBInvitationRegisterUpdate(userID string) map[string]any

Types

type Admin

type Admin struct {
	Account    string    `gorm:"column:account;primary_key;type:char(64)"`
	Password   string    `gorm:"column:password;type:char(64)"`
	FaceURL    string    `gorm:"column:face_url;type:char(64)"`
	Nickname   string    `gorm:"column:nickname;type:char(64)"`
	UserID     string    `gorm:"column:user_id;type:char(64)"` // openIM userID
	Level      int32     `gorm:"column:level;default:1"  `
	CreateTime time.Time `gorm:"column:create_time"`
}

Jump to

Keyboard shortcuts

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