Back to / controller

Package controller

Latest Go to latest

The latest major version is .

Published: Nov 20, 2019 | License: GPL3 | Module:


Package controller is the "controller" layer.


func MapRoutes

func MapRoutes() *gin.Engine

MapRoutes returns a gin engine and binds controllers with request URLs.

type DataModel

type DataModel map[string]interface{}

DataModel represents data model.

type Status

type Status struct {

	Name      string              `json:"name"`
	Nickname  string              `json:"nickname"`
	AvatarURL string              `json:"avatarURL"`
	BlogTitle string              `json:"blogTitle"`
	BlogURL   string              `json:"blogURL"`
	Role      int                 `json:"role"`
	Blogs     []*service.UserBlog `json:"blogs"`

Status represents platform status and blog info.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier