代码拉取完成,页面将自动刷新
// Package booking API.
//
// the purpose of this application is to provide an application
// that is using plain go code to define an API
//
//
// Schemes: https
// Host: localhost
// Version: 0.0.1
//
// Consumes:
// - application/json
//
// Produces:
// - application/json
//
//
// swagger:meta
package spec
import (
"net/http"
"github.com/go-swagger/scan-repo-boundary/makeplans"
)
// Customer of the site.
//
// swagger:model Customer
type Customer struct {
Name string `json:"name"`
}
// IgnoreMe should not be added to definitions since it is not annotated.
type IgnoreMe struct {
Name string `json:"name"`
}
// DateRange represents a scheduled appointments time
// DateRange should be in definitions since it's being used in a response
type DateRange struct {
Start string `json:"start"`
End string `json:"end"`
}
// BookingResponse represents a scheduled appointment
//
// swagger:response BookingResponse
type BookingResponse struct {
// Booking struct
//
// in: body
// required: true
Body struct {
Booking makeplans.Booking `json:"booking"`
Customer Customer `json:"customer"`
Dates DateRange `json:"dates"`
// example: {"key": "value"}
Map map[string]string `json:"map"`
// example: [1, 2]
Slice []int `json:"slice"`
}
}
// Bookings swagger:route GET /admin/bookings/ booking Bookings
//
// Bookings lists all the appointments that have been made on the site.
//
//
// Consumes:
// application/json
//
// Schemes: http, https
//
// Produces:
// application/json
//
// Responses:
// 200: BookingResponse
func bookings(w http.ResponseWriter, r *http.Request) {
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。