controller

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusinessEntityController

type BusinessEntityController struct {
}

func (*BusinessEntityController) AddRole

func (this *BusinessEntityController) AddRole(ctx iris.Context)

func (*BusinessEntityController) Create

func (this *BusinessEntityController) Create(ctx iris.Context)

func (*BusinessEntityController) Delete

func (this *BusinessEntityController) Delete(ctx iris.Context)

func (*BusinessEntityController) Find

func (this *BusinessEntityController) Find(ctx iris.Context)

func (*BusinessEntityController) Get

func (this *BusinessEntityController) Get(ctx iris.Context)

func (*BusinessEntityController) GetActual

func (this *BusinessEntityController) GetActual(ctx iris.Context)

func (*BusinessEntityController) Load

func (this *BusinessEntityController) Load(ctx iris.Context)

func (*BusinessEntityController) LoadRole

func (this *BusinessEntityController) LoadRole(ctx iris.Context)

func (*BusinessEntityController) RemoveRole

func (this *BusinessEntityController) RemoveRole(ctx iris.Context)

func (*BusinessEntityController) Save

func (this *BusinessEntityController) Save(ctx iris.Context)

func (*BusinessEntityController) SetValue

func (this *BusinessEntityController) SetValue(ctx iris.Context)

func (*BusinessEntityController) Update

func (this *BusinessEntityController) Update(ctx iris.Context)

func (*BusinessEntityController) Version

func (this *BusinessEntityController) Version(ctx iris.Context)

type RoleController

type RoleController struct {
	controller.BaseController
}

* 控制层代码需要做数据转换,调用服务层的代码,由于数据转换的结构不一致,因此每个实体(外部rest方式访问)的控制层都需要写一遍

func (*RoleController) Create

func (this *RoleController) Create(ctx iris.Context)

func (*RoleController) Find

func (this *RoleController) Find(ctx iris.Context)

func (*RoleController) GetActual

func (this *RoleController) GetActual(ctx iris.Context)

func (*RoleController) Load

func (this *RoleController) Load(ctx iris.Context)

func (*RoleController) ParseJSON

func (this *RoleController) ParseJSON(json []byte) (interface{}, error)

func (*RoleController) Save

func (this *RoleController) Save(ctx iris.Context)

func (*RoleController) Version

func (this *RoleController) Version(ctx iris.Context)

Jump to

Keyboard shortcuts

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