service

package
v0.0.0-...-ae6897b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultInterceptor

func DefaultInterceptor(ctx *gin.Context, envelope *view.Envelope) error

Types

type Extra

type Extra struct {
	Date time.Time `json:"date,omitempty"`
}

type Interceptor

type Interceptor func(ctx *gin.Context, envelope *view.Envelope) error

Interceptor 拦截器,调整envelope数据结构

type User

type User struct {
	Name string `json:"name,omitempty"`
	Age  int    `json:"age,omitempty"`
}

type UserService

type UserService struct {
}

func (*UserService) GetUser

func (u *UserService) GetUser(ctx *gin.Context, env *view.Envelope, filters ...Interceptor) error

type Users

type Users struct {
	Users []User `json:"users"`
}

Jump to

Keyboard shortcuts

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