fix
wangpengfei
2023-07-07 9b6770c4fea190574e3cf03b856d7af1db0e15aa
api/v1/saleType.go
@@ -14,12 +14,12 @@
// Add
//
// @Tags SaleType
// @Summary 添加销售类型
// @Produce application/json
// @Param object body request.AddSaleType true "查询参数"
// @Success 200 {object} contextx.Response{}
// @Router /api/saleType/add [post]
//   @Tags      SaleType
//   @Summary   添加销售类型
//   @Produce   application/json
//   @Param      object   body      request.AddSaleType   true   "查询参数"
//   @Success   200      {object}   contextx.Response{}
//   @Router      /api/saleType/add [post]
func (s *SaleTypeApi) Add(c *gin.Context) {
   var params request.AddSaleType
   ctx, ok := contextx.NewContext(c, &params)
@@ -41,12 +41,12 @@
// Delete
//
// @Tags SaleType
// @Summary 删除销售类型
// @Produce application/json
// @Param id path int true "查询参数"
// @Success 200 {object} contextx.Response{}
// @Router /api/saleType/delete/{id} [delete]
//   @Tags      SaleType
//   @Summary   删除销售类型
//   @Produce   application/json
//   @Param      id   path      int   true   "查询参数"
//   @Success   200   {object}   contextx.Response{}
//   @Router      /api/saleType/delete/{id} [delete]
func (s *SaleTypeApi) Delete(c *gin.Context) {
   ctx, ok := contextx.NewContext(c, nil)
   if !ok {
@@ -65,12 +65,12 @@
// Update
//
// @Tags SaleType
// @Summary 更新销售类型
// @Produce application/json
// @Param object body request.UpdateSaleTypes true "查询参数"
// @Success 200 {object} contextx.Response{}
// @Router /api/saleType/update [put]
//   @Tags      SaleType
//   @Summary   更新销售类型
//   @Produce   application/json
//   @Param      object   body      request.UpdateSaleTypes   true   "查询参数"
//   @Success   200      {object}   contextx.Response{}
//   @Router      /api/saleType/update [put]
func (s *SaleTypeApi) Update(c *gin.Context) {
   var params request.UpdateSaleTypes
   ctx, ok := contextx.NewContext(c, &params)
@@ -89,11 +89,11 @@
// List
//
// @Tags SaleType
// @Summary 获取销售类型列表
// @Produce application/json
// @Success 200 {object} contextx.Response{data=response.SaleTypeResponse}
// @Router /api/saleType/list [get]
//   @Tags      SaleType
//   @Summary   获取销售类型列表
//   @Produce   application/json
//   @Success   200   {object}   contextx.Response{data=response.SaleTypeResponse}
//   @Router      /api/saleType/list [get]
func (s *SaleTypeApi) List(c *gin.Context) {
   ctx, ok := contextx.NewContext(c, nil)
   if !ok {