|
@@ -5,6 +5,8 @@ import com.zheng.cms.dao.model.CmsCategory;
|
|
|
import com.zheng.cms.dao.model.CmsCategoryExample;
|
|
|
import com.zheng.cms.rpc.api.CmsCategoryService;
|
|
|
import com.zheng.common.util.Paginator;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -40,6 +42,7 @@ public class CmsCategoryController extends BaseController {
|
|
|
* @param modelMap
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation(value = "类目列表", notes = "获取类目列表并分页")
|
|
|
@RequestMapping("/list")
|
|
|
public String list(
|
|
|
@RequestParam(required = false, defaultValue = "1", value = "page") int page,
|
|
@@ -78,6 +81,9 @@ public class CmsCategoryController extends BaseController {
|
|
|
* @param modelMap
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation(value = "创建类目", notes = "根据CmsCategory对象创建类目")
|
|
|
+ @ApiImplicitParam(name = "cmsCategory", value = "类目实体cmsCategory", required = true, dataType = "CmsCategory")
|
|
|
+
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
public String add(CmsCategory cmsCategory, ModelMap modelMap) {
|
|
|
long time = System.currentTimeMillis();
|