admin

package
Version: v0.0.0-...-2b5e5cc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

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

	PageNum  int `form:"page_num"`  //頁數*筆數,從0(代表第一頁)開始
	PageSize int `form:"page_size"` //從PageNum之後取出的筆數
}

func (*Admin) Add

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

func (*Admin) Get

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

func (*Admin) GetForLogin

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

type AdminProfile

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

Source Files

Jump to

Keyboard shortcuts

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