controllers

package
v0.0.0-...-9dec8c7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
	Ctx     iris.Context
	Service services.SuperstarService
}

func (*AdminController) Get

func (c *AdminController) Get() mvc.Result

func (*AdminController) GetDelete

func (c *AdminController) GetDelete() mvc.Result

func (*AdminController) GetEdit

func (c *AdminController) GetEdit() mvc.Result

func (*AdminController) PostSave

func (c *AdminController) PostSave() mvc.Result

type IndexController

type IndexController struct {
	Ctx     iris.Context
	Service services.SuperstarService
}

func (*IndexController) Get

func (c *IndexController) Get() mvc.Result

http://localhost:8080/

func (*IndexController) GetBy

func (c *IndexController) GetBy(id int) mvc.Result

http://localhost:8080/{id}

func (*IndexController) GetClearcache

func (c *IndexController) GetClearcache() mvc.Result

集群多服务器的时候,才用得上这个接口 性能优化的时候才考虑,加上本机的SQL缓存 http://localhost:8080/clearcache

func (*IndexController) GetSearch

func (c *IndexController) GetSearch() mvc.Result

http://localhost:8080/search?country=巴西

Jump to

Keyboard shortcuts

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