potato/internal/controller/api/v1/basic/vendor.go

60 lines
1.6 KiB
Go
Raw Normal View History

2021-06-10 19:03:15 +08:00
/*
* @Date: 2021-03-21 19:54:57
* @LastEditors: viletyy
* @LastEditTime: 2021-06-10 17:56:42
* @FilePath: /potato/internal/controller/api/v1/basic/vendor.go
*/
2019-08-11 15:41:32 +08:00
package basic
import (
"github.com/gin-gonic/gin"
)
2021-06-10 19:03:15 +08:00
type Vendor struct{}
2021-03-24 11:29:15 +08:00
2019-08-11 15:41:32 +08:00
// @Summary 系统厂商列表
// @Tags vendors
// @Description
// @Accept json
// @Produce json
2019-09-03 20:47:49 +08:00
// @Param Authorization header string true "auth by /auth"
2021-06-10 19:03:15 +08:00
// @Param name query string false "名称" maxlength(100)
2021-03-24 11:29:15 +08:00
// @Param page query int false "页码"
// @Param page_size query int false "每页数量"
2021-06-10 19:03:15 +08:00
// @Success 200 {object} basic.Vendor "请求成功"
2019-08-11 15:41:32 +08:00
// @Router /v1/vendors [get]
2021-06-10 19:03:15 +08:00
func (vendor Vendor) List(c *gin.Context) {}
2019-08-11 15:41:32 +08:00
// @Summary 新增系统厂商
// @Tags vendors
// @Description
// @Accept mpfd
// @Produce json
2019-09-03 20:47:49 +08:00
// @Param Authorization header string true "auth by /auth"
2021-06-10 19:03:15 +08:00
// @Success 200 {object} basic.Vendor "请求成功"
2019-08-11 15:41:32 +08:00
// @Router /v1/vendors [post]
2021-06-10 19:03:15 +08:00
func (vendor Vendor) Create(c *gin.Context) {}
2019-08-11 15:41:32 +08:00
// @Summary 修改系统厂商
// @Tags vendors
// @Description
// @Accept mpfd
// @Produce json
2019-09-03 20:47:49 +08:00
// @Param Authorization header string true "auth by /auth"
2019-08-11 15:41:32 +08:00
// @Param id path int true "系统厂商 ID"
2021-06-10 19:03:15 +08:00
// @Success 200 {object} basic.Vendor "请求成功"
2019-08-11 15:41:32 +08:00
// @Router /v1/vendors/{id} [patch]
2021-06-10 19:03:15 +08:00
func (vendor Vendor) Update(c *gin.Context) {}
2019-08-11 15:41:32 +08:00
// @Summary 删除系统厂商
// @Tags vendors
// @Description
// @Accept json
// @Produce json
2019-09-03 20:47:49 +08:00
// @Param Authorization header string true "auth by /auth"
2019-08-11 15:41:32 +08:00
// @Param id path int true "系统厂商 ID"
2021-06-10 19:03:15 +08:00
// @Success 200 {object} basic.Vendor "请求成功"
2019-08-11 15:41:32 +08:00
// @Router /v1/vendors/{id} [delete]
2021-06-10 19:03:15 +08:00
func (vendor Vendor) Delete(c *gin.Context) {
2021-03-23 00:55:26 +08:00
}