| | |
| | | // AddMiniDict |
| | | // |
| | | // @Tags 数据字典 |
| | | // @Summary 添加迷你字典 |
| | | // @Summary 添加字典信息 |
| | | // @Produce application/json |
| | | // @Param object body request.AddMiniDict true "参数" |
| | | // @Success 200 {object} util.Response "成功" |
| | |
| | | // EditMiniDict |
| | | // |
| | | // @Tags 数据字典 |
| | | // @Summary 编辑迷你字典 |
| | | // @Summary 编辑字典信息 |
| | | // @Produce application/json |
| | | // @Param object body request.EditMiniDict true "参数" |
| | | // @Success 200 {object} util.Response "成功" |
| | |
| | | |
| | | // DeleteMiniDict |
| | | // |
| | | // @Tags 属性值和对象 |
| | | // @Summary 删除属性值和对象 |
| | | // @Tags 数据字典 |
| | | // @Summary 删除字典信息 |
| | | // @Param id path string true "id" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/dict/delete/{id} [delete] |
| | |
| | | // GetMiniDictList |
| | | // |
| | | // @Tags 数据字典 |
| | | // @Summary 获取迷你字典列表 |
| | | // @Summary 获取字典信息列表 |
| | | // @Produce application/json |
| | | // @Param object query request.GetMiniDictList true "参数" |
| | | // @Param object body request.GetMiniDictList true "参数" |
| | | // @Success 200 {object} util.ResponseList{data=[]models.MiniDict} "成功" |
| | | // @Router /api-wms/v1/dict/getDictList [get] |
| | | // @Router /api-wms/v1/dict/getDictList [post] |
| | | func (slf DictController) GetMiniDictList(c *gin.Context) { |
| | | var params request.GetMiniDictList |
| | | if err := c.BindJSON(¶ms); err != nil { |