controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorController

type AuthorController struct {
	controller.BaseController
}

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

func (*AuthorController) ParseJSON

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

func (*AuthorController) ParsePath

func (this *AuthorController) ParsePath(ctx iris.Context)

type PoemController

type PoemController struct {
	controller.BaseController
}

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

func (*PoemController) ParseJSON

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

func (*PoemController) ParsePath

func (this *PoemController) ParsePath(ctx iris.Context)

type RhythmicController

type RhythmicController struct {
	controller.BaseController
}

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

func (*RhythmicController) ParseJSON

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

Jump to

Keyboard shortcuts

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