| | |
| | | // @Produce application/json |
| | | // @Param data body test.SupplierType true "创建SupplierType" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" |
| | | // @Router /api/st/createSupplierType [post] |
| | | // @Router /st/createSupplierType [post] |
| | | func (stApi *SupplierTypeApi) CreateSupplierType(c *gin.Context) { |
| | | var st test.SupplierType |
| | | err := c.ShouldBindJSON(&st) |
| | |
| | | // @Produce application/json |
| | | // @Param data body test.SupplierType true "删除SupplierType" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" |
| | | // @Router /api/st/deleteSupplierType [delete] |
| | | // @Router /st/deleteSupplierType [delete] |
| | | func (stApi *SupplierTypeApi) DeleteSupplierType(c *gin.Context) { |
| | | var st test.SupplierType |
| | | err := c.ShouldBindJSON(&st) |
| | |
| | | // @Produce application/json |
| | | // @Param data body request.IdsReq true "批量删除SupplierType" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}" |
| | | // @Router /api/st/deleteSupplierTypeByIds [delete] |
| | | // @Router /st/deleteSupplierTypeByIds [delete] |
| | | func (stApi *SupplierTypeApi) DeleteSupplierTypeByIds(c *gin.Context) { |
| | | var IDS request.IdsReq |
| | | err := c.ShouldBindJSON(&IDS) |
| | |
| | | // @Produce application/json |
| | | // @Param data body test.SupplierType true "更新SupplierType" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" |
| | | // @Router /api/st/updateSupplierType [put] |
| | | // @Router /st/updateSupplierType [put] |
| | | func (stApi *SupplierTypeApi) UpdateSupplierType(c *gin.Context) { |
| | | var st test.SupplierType |
| | | err := c.ShouldBindJSON(&st) |
| | |
| | | // @Produce application/json |
| | | // @Param data query test.SupplierType true "用id查询SupplierType" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" |
| | | // @Router /api/st/findSupplierType [get] |
| | | // @Router /st/findSupplierType [get] |
| | | func (stApi *SupplierTypeApi) FindSupplierType(c *gin.Context) { |
| | | var st test.SupplierType |
| | | err := c.ShouldBindQuery(&st) |
| | |
| | | // @Produce application/json |
| | | // @Param data query testReq.SupplierTypeSearch true "分页获取SupplierType列表" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" |
| | | // @Router /api/st/getSupplierTypeList [get] |
| | | // @Router /st/getSupplierTypeList [get] |
| | | func (stApi *SupplierTypeApi) GetSupplierTypeList(c *gin.Context) { |
| | | var pageInfo testReq.SupplierTypeSearch |
| | | err := c.ShouldBindQuery(&pageInfo) |