admin

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(clientIp string, account string, password string) (*helper.Token, error)

Types

type Admin

type Admin struct {
	Account  string       `json:"account"`
	Password string       `json:"password"`
	GroupID  int          `json:"-"`
	Status   int          `json:"-"`
	Profile  AdminProfile `json:"profile"`

	service.Page `json:"page"`
}

func (*Admin) Add

func (a *Admin) Add() (Admin, error)

func (*Admin) Get

func (a *Admin) Get() ([]Admin, error)

func (*Admin) GetForLogin

func (a *Admin) GetForLogin() (*admin.Admin, error)

type AdminProfile

type AdminProfile struct {
	AdminID uint   `json:"admin_id"`
	Name    string `json:"name"`
}

Jump to

Keyboard shortcuts

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