model

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AccessToken  string `json:"access_token"`  // 访问 token
	RefreshToken string `json:"refresh_token"` // 刷新 token
}

Auth 包括访问 token 和 刷新 token

type BackToFrontEndData

type BackToFrontEndData struct {
	Code        int                    `json:"code"`  // 自定义状态码
	Description string                 `json:"desc"`  // 描述信息
	Auth        Auth                   `json:"token"` // 认证信息
	Data        map[string]interface{} `json:"data"`  // 数据
	Error       string                 `json:"error"` //  错误信息
}

BackToFrontEndData 返回给前端的结构

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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