http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

@securityDefinitions.basic BasicAuth

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpEngine

func NewHttpEngine(container framework.Container) (*gin.Engine, error)

func Routes

func Routes(r *gin.Engine)

Routes 绑定业务层路由

Types

type Account added in v1.0.0

type Account struct {
	ID        int      `json:"id" example:"1"`
	Name      string   `json:"name" example:"account name"`
	PhotoUrls []string `json:"photo_urls" example:"http://test/image/1.jpg,http://test/image/2.jpg"`
}

type JSONResult added in v1.0.0

type JSONResult struct {
	Code    int         `json:"code" `
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

返回了一个JsonResult对象,其中这个对象的data字段是Order结构 @success 200 {object} jsonresult.JSONResult{data=proto.Order} "desc"

type Order added in v1.0.0

type Order struct {
	Id   uint        `json:"id"`
	Data interface{} `json:"data"`
}

Directories

Path Synopsis
middleware
module
Package swagger GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag at 2022-12-06 16:18:54.040659374 +0800 CST m=+0.047469077
Package swagger GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag at 2022-12-06 16:18:54.040659374 +0800 CST m=+0.047469077

Jump to

Keyboard shortcuts

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