package cn.hmsoft.hmplatform.wxtoken.control;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.hmsoft.application.web.Ajax;
import cn.hmsoft.frame.control.FrameControl;
import cn.hmsoft.hmplatform.wxtoken.data.dao.PWxDeployDao;

@RestController
public class WeixinTokenDeployControl extends FrameControl {

	@Autowired
	private PWxDeployDao daoDeploy;
	
	@RequestMapping("platform/wxtoken/deploy/page")
	public Ajax page(Integer token_id, String query, Integer limit, Integer start, String order, String type) {
		return new Ajax(this.daoDeploy.pageDeploy(token_id, start, limit, query, getQueryOrder(order, type)));
	}
}
