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

com.minlia.rocket.abstraction.endpoint.AbstractEndpoint Maven / Gradle / Ivy

There is a newer version: 2.0.4.1.RELEASE
Show newest version
package com.minlia.rocket.abstraction.endpoint;

import com.minlia.rocket.abstraction.service.ConditionalService;
import com.minlia.rocket.data.body.AbstractQueryRequestBody;
import com.minlia.rocket.data.interfaces.IRawService;
import com.minlia.rocket.loggable.annotation.Loggable;
import java.io.Serializable;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 如果可以在接口上进行RequestMapping相关的注解的话, 可以抽离成各种不同的接口
 *
 * @author will
 * @since 2.0.3
 */
@Loggable
public interface AbstractEndpoint extends
    CreationEndpoint
    , FindOneByIdEndpoint
    , FindListByConditionEndpoint
    , FindPaginatedByConditionEndpoint
    , UpdateableEndpoint
    , DeleteByIdsEndpoint
    , DeleteByConditionEndpoint
    , ExistsByConditionEndpoint
    , CountByConditionEndpoint {

  /**
   * 获取service
   */
  @Override
  @Autowired
  public abstract IRawService getRawService();


  /**
   * 获取条件化的服务
   */
  @Override
  @Autowired
  public abstract ConditionalService getConditionalService();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy