api

package
v0.0.0-...-f2c6170 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxIdleConns = 3000

Variables

View Source
var OpenClient = resty.New()

Functions

func GetPricesUrl

func GetPricesUrl(ctx context.Context, service_number, keys string) (*resty.Response, error)

func IndexApi

func IndexApi(c *gin.Context)

func PriceAddAndUpdateByItemApi

func PriceAddAndUpdateByItemApi(c *gin.Context)

func PriceDeleteItemApi

func PriceDeleteItemApi(c *gin.Context)

func PriceGetItemApi

func PriceGetItemApi(c *gin.Context)

func PriceGetItemsAllApi

func PriceGetItemsAllApi(c *gin.Context)

func PriceGetItemsApi

func PriceGetItemsApi(c *gin.Context)

func TokenGetApi

func TokenGetApi(c *gin.Context)

curl -X POST -H "Content-Type:application/json" -d "{\"username\":\"admin\", \"code\": \"123456\"}" http://localhost:8080/login

Types

type Client

type Client struct {
	Client *resty.Client
}

type Login

type Login struct {
	Account string `json:"account"`
	Code    string `json:"code"`
}

Jump to

Keyboard shortcuts

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