| | |
| | | |
| | | // 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, ¶ms) |
| | |
| | | |
| | | // 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 { |
| | |
| | | |
| | | // 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, ¶ms) |
| | |
| | | |
| | | // 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 { |