controller

package
v0.0.0-...-3cd268a Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllMatchTopics

func GetAllMatchTopics(controller BaseController) func(g *gin.Context)

Types

type BaseController

type BaseController struct {
	Api api.API
}

type Response

type Response struct {
	Success bool        `json:"success"`
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

func NewResponse

func NewResponse(success bool, code int, msg string, data interface{}) *Response

func NewSuccessResponse

func NewSuccessResponse(data interface{}) *Response

Jump to

Keyboard shortcuts

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