All Downloads are FREE. Search and download functionalities are using the official Maven repository.

love.keeping.starter.web.controller.DefaultBaseController Maven / Gradle / Ivy

The newest version!
package love.keeping.starter.web.controller;

import love.keeping.starter.common.utils.StringUtil;
import love.keeping.starter.web.utils.JsonUtil;
import love.keeping.starter.web.vo.BaseVo;
import love.keeping.starter.web.vo.OpenApiReqVo;

/**
 * 具有Security能力的BaseController
 *
 * @author Keeping
 */
public abstract class DefaultBaseController extends BaseController {

  public  T getOpenApiVo(OpenApiReqVo vo, Class clazz) {
    if (StringUtil.isBlank(vo.getParams())) {
      return null;
    }
    return JsonUtil.parseObject(vo.getParams(), clazz);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy