antweb

package
v0.0.0-...-2ec961a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	W            http.ResponseWriter
	R            *http.Request
	Data         map[string]interface{}
	JsonData     map[string]interface{}
	Postdata     map[string]interface{}
	Body         []byte
	Site_name    string
	Masterdb     string
	Access_token string
	Tokenname    string
	Jsonmsg      Json_msg
	Err_status   int
}

func (*Controller) Error_return

func (this *Controller) Error_return(msg string)

func (*Controller) Success_return

func (this *Controller) Success_return(msg string, data interface{})

type Json_msg

type Json_msg struct {
	Status int         `json:"status"`
	Msg    string      `json:"message"`
	Data   interface{} `json:"result"`
}

Jump to

Keyboard shortcuts

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