controllers

package
v0.0.0-...-5779a51 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dbm *gorp.DbMap
)

Functions

func Init

func Init()

Types

type ApiOutputs

type ApiOutputs struct {
	App
}

func (ApiOutputs) Add

func (ao ApiOutputs) Add(apiId int, name, output string) revel.Result

func (ApiOutputs) ChangeStatus

func (ao ApiOutputs) ChangeStatus(apiId, dataId int) revel.Result

func (ApiOutputs) Del

func (ao ApiOutputs) Del(apiId, dataId int) revel.Result

func (ApiOutputs) Detail

func (ao ApiOutputs) Detail(dataId int) revel.Result

func (ApiOutputs) Edit

func (ao ApiOutputs) Edit(apiId, dataId int, name, output string) revel.Result

func (ApiOutputs) List

func (ao ApiOutputs) List(apiId, page, size int) revel.Result

func (ApiOutputs) New

func (ao ApiOutputs) New(apiId int) revel.Result

type ApiSimulator

type ApiSimulator struct {
	App
}

func (ApiSimulator) Simulate

func (as ApiSimulator) Simulate(productId string) revel.Result

type App

type App struct {
	GorpController
}

func (App) Index

func (c App) Index() revel.Result

type ErrorMsg

type ErrorMsg struct {
	Errno int      `json:"errno"`
	Err   string   `json:"err"`
	Rst   []string `json:"rst"`
}

type GorpController

type GorpController struct {
	*r.Controller
	Txn *gorp.Transaction
}

func (*GorpController) Begin

func (c *GorpController) Begin() r.Result

func (*GorpController) Commit

func (c *GorpController) Commit() r.Result

func (*GorpController) Rollback

func (c *GorpController) Rollback() r.Result

type ProductApis

type ProductApis struct {
	App
}

func (ProductApis) Add

func (pa ProductApis) Add(productId, style int, path, category, description, input, output string) revel.Result

func (ProductApis) Del

func (pa ProductApis) Del(productId, apiId int) revel.Result

func (ProductApis) Detail

func (pa ProductApis) Detail(productId, apiId int) revel.Result

func (ProductApis) Edit

func (pa ProductApis) Edit(productId, apiId, style int, path, category, description, input, output string) revel.Result

func (ProductApis) List

func (pa ProductApis) List(productId, page, size int) revel.Result

func (ProductApis) New

func (pa ProductApis) New(productId int) revel.Result

func (ProductApis) Search

func (pa ProductApis) Search(category, path string, productId, page, size int) revel.Result

type Products

type Products struct {
	App
}

func (Products) Add

func (p Products) Add(name, description string) revel.Result

func (Products) Del

func (p Products) Del(id string) revel.Result

func (Products) Detail

func (p Products) Detail(id string) revel.Result

func (Products) Edit

func (p Products) Edit(id, name, description string) revel.Result

func (Products) Index

func (p Products) Index() revel.Result

func (Products) List

func (p Products) List(size, page int) revel.Result

func (Products) New

func (p Products) New() revel.Result

Jump to

Keyboard shortcuts

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