controller

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 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
}

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

func (*AuthorController) ParseJSON

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

func (*AuthorController) ParsePath

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

type PoemController

type PoemController struct {
	controller.BaseController
}

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

func (*PoemController) ParseJSON

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

func (*PoemController) Search added in v0.1.24

func (ctl *PoemController) Search(ctx iris.Context)

type PoemPara added in v0.1.24

type PoemPara struct {
	entity.Poem
	From  int `json:"from,omitempty"`
	Limit int `json:"limit,omitempty"`
}

type RhythmicController

type RhythmicController struct {
	controller.BaseController
}

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

func (*RhythmicController) ParseJSON

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

Jump to

Keyboard shortcuts

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