api

package
v0.0.0-...-0eed87a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexApi

type IndexApi struct {
	Jwt         *jwt.Jwt         `inject:""`
	UserService user.UserService `inject:""`
}

func (*IndexApi) Index

func (a *IndexApi) Index() fiber.Handler

type Router

type Router struct {
	Jwt         *jwt.Jwt         `inject:""`
	App         *fiber.App       `inject:""`
	Sapi        *Sapi            `inject:""`
	IndexApi    *IndexApi        `inject:""`
	UserService user.UserService `inject:""`
}

func (*Router) Init

func (r *Router) Init()

func (*Router) RequireAdminRole

func (r *Router) RequireAdminRole(c *fiber.Ctx) error

func (*Router) RequireLogin

func (r *Router) RequireLogin(c *fiber.Ctx) error

type Sapi

type Sapi struct {
	Jwt         *jwt.Jwt         `inject:""`
	UserService user.UserService `inject:""`
	TaskService task.TaskService `inject:""`
}

func (*Sapi) Dashboard

func (a *Sapi) Dashboard(c *fiber.Ctx) error

func (*Sapi) DelBatch

func (a *Sapi) DelBatch(c *fiber.Ctx) error

func (*Sapi) ExcutePage

func (a *Sapi) ExcutePage(c *fiber.Ctx) error

func (*Sapi) Init

func (a *Sapi) Init(c *fiber.Ctx) error

func (*Sapi) Login

func (a *Sapi) Login(c *fiber.Ctx) error

func (*Sapi) Logout

func (a *Sapi) Logout(c *fiber.Ctx) error

func (*Sapi) StartBatch

func (a *Sapi) StartBatch(c *fiber.Ctx) error

func (*Sapi) StopBatch

func (a *Sapi) StopBatch(c *fiber.Ctx) error

func (*Sapi) TaskAdd

func (a *Sapi) TaskAdd(c *fiber.Ctx) error

func (*Sapi) TaskDel

func (a *Sapi) TaskDel(c *fiber.Ctx) error

func (*Sapi) TaskDo

func (a *Sapi) TaskDo(c *fiber.Ctx) error

func (*Sapi) TaskPage

func (a *Sapi) TaskPage(c *fiber.Ctx) error

func (*Sapi) TaskStart

func (a *Sapi) TaskStart(c *fiber.Ctx) error

func (*Sapi) TaskStop

func (a *Sapi) TaskStop(c *fiber.Ctx) error

func (*Sapi) TaskUpdate

func (a *Sapi) TaskUpdate(c *fiber.Ctx) error

func (*Sapi) TaskUpdateUser

func (a *Sapi) TaskUpdateUser(c *fiber.Ctx) error

func (*Sapi) UserAdd

func (a *Sapi) UserAdd(c *fiber.Ctx) error

func (*Sapi) UserDel

func (a *Sapi) UserDel(c *fiber.Ctx) error

func (*Sapi) UserDisable

func (a *Sapi) UserDisable(c *fiber.Ctx) error

func (*Sapi) UserEnable

func (a *Sapi) UserEnable(c *fiber.Ctx) error

func (*Sapi) UserList

func (a *Sapi) UserList(c *fiber.Ctx) error

func (*Sapi) UserResetPassword

func (a *Sapi) UserResetPassword(c *fiber.Ctx) error

func (*Sapi) UserUpdate

func (a *Sapi) UserUpdate(c *fiber.Ctx) error

type WebConfig

type WebConfig struct {
	Assets string `json:"assets"`
	Title  string `json:"title"`
	Desc   string `json:"desc"`
	Avatar string `json:"avatar"`
}

Jump to

Keyboard shortcuts

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