com.kasinf.framework.rest.web.controller.BaseController Maven / Gradle / Ivy
The newest version!
package com.kasinf.framework.rest.web.controller;
import com.kasinf.framework.core.response.R;
import com.kasinf.framework.rest.eneity.AbstractEntity;
import com.kasinf.framework.rest.web.service.BaseService;
import java.io.Serializable;
/**
* @author lkhsh
* 基础请求返回
*/
public interface BaseController {
/**
* 获取对应的service
*
* @return BaseService
*/
BaseService getBaseService();
/**
* 获取实体类型
*
* @return Class
*/
Class getEntityClass();
/**
* 设置无正文的响应
*
* @return {@link R}
*/
R success();
/**
* 设置无正文的响应
*
* @param data 返回主体
* @return {@link R}
*/
R success(Object data);
}