/**
* 文件：WarehouseController.java
* 版本：1.0.0
* 日期：
* Copyright &reg; 
* All right reserved.
*/
package com.mortals.xhx.module.warehouse.web;


import com.mortals.framework.common.IBaseEnum;
import com.mortals.framework.common.code.YesNo;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonMappingController;
import com.mortals.xhx.module.warehouse.model.WarehouseEntity;
import com.mortals.xhx.module.warehouse.service.WarehouseService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * <p>Title: 仓库表</p>
 * <p>Description: WarehouseController  </p>
 * <p>Copyright: Copyright &reg;  </p>
 * <p>Company: </p>
 * @author 
 * @version 1.0.0
 */
@RestController
@RequestMapping("warehouse")
public class WarehouseController extends BaseCRUDJsonMappingController<WarehouseService,WarehouseForm,WarehouseEntity,Long> {

	public WarehouseController(){
		super.setFormClass(WarehouseForm.class);
		super.setModuleDesc("仓库表");
	}

	@Override
	protected void init(HttpServletRequest request, HttpServletResponse response, WarehouseForm form, Map<String, Object> model, Context context) {
		this.addDict(model, "status", IBaseEnum.getEnumMap(YesNo.class));
		super.init(request, response, form, model, context);
	}
}