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.PWxTokenRequestDao;

@RestController
public class WeixinTokenRequestControl extends FrameControl {

	@Autowired
	private PWxTokenRequestDao daoRequest;
	
	@RequestMapping("platform/wxtoken/request/page")
	public Ajax page(Integer token_id, String query, Integer limit, Integer start, String order, String type) {
		return new Ajax(this.daoRequest.pageRequest(token_id, start, limit, query, getQueryOrder(order, type)));
	}
}
