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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SessionController

func SessionController(ctx iris.Context)

* session处理,获取当前会话,不存在创建,否则获取会话ID,存入数据库记录 放在iris全局最早的中间件

Types

type SessionInstanceController

type SessionInstanceController struct {
	controller.BaseController
}

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

func (*SessionInstanceController) ParseJSON

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

Jump to

Keyboard shortcuts

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