Documentation ¶
Index ¶
- Variables
- func Init()
- type ApiOutputs
- func (ao ApiOutputs) Add(apiId int, name, output string) revel.Result
- func (ao ApiOutputs) ChangeStatus(apiId, dataId int) revel.Result
- func (ao ApiOutputs) Del(apiId, dataId int) revel.Result
- func (ao ApiOutputs) Detail(dataId int) revel.Result
- func (ao ApiOutputs) Edit(apiId, dataId int, name, output string) revel.Result
- func (ao ApiOutputs) List(apiId, page, size int) revel.Result
- func (ao ApiOutputs) New(apiId int) revel.Result
- type ApiSimulator
- type App
- type ErrorMsg
- type GorpController
- type ProductApis
- func (pa ProductApis) Add(productId, style int, path, category, description, input, output string) revel.Result
- func (pa ProductApis) Del(productId, apiId int) revel.Result
- func (pa ProductApis) Detail(productId, apiId int) revel.Result
- func (pa ProductApis) Edit(productId, apiId, style int, path, category, description, input, output string) revel.Result
- func (pa ProductApis) List(productId, page, size int) revel.Result
- func (pa ProductApis) New(productId int) revel.Result
- func (pa ProductApis) Search(category, path string, productId, page, size int) revel.Result
- type Products
- func (p Products) Add(name, description string) revel.Result
- func (p Products) Del(id string) revel.Result
- func (p Products) Detail(id string) revel.Result
- func (p Products) Edit(id, name, description string) revel.Result
- func (p Products) Index() revel.Result
- func (p Products) List(size, page int) revel.Result
- func (p Products) New() revel.Result
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Dbm *gorp.DbMap
)
Functions ¶
Types ¶
type ApiOutputs ¶
type ApiOutputs struct {
App
}
func (ApiOutputs) ChangeStatus ¶
func (ao ApiOutputs) ChangeStatus(apiId, dataId int) revel.Result
type ApiSimulator ¶
type ApiSimulator struct {
App
}
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
Click to show internal directories.
Click to hide internal directories.