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

com.nbsaas.boot.pay.rest.resource.CashConfigResource Maven / Gradle / Ivy

package com.nbsaas.boot.pay.rest.resource;

import com.nbsaas.boot.rest.request.PageRequest;
import com.nbsaas.boot.rest.response.ListResponse;
import com.nbsaas.boot.pay.api.apis.CashConfigApi;
import com.nbsaas.boot.pay.data.entity.CashConfig;
import com.nbsaas.boot.pay.api.domain.request.CashConfigDataRequest;
import com.nbsaas.boot.pay.api.domain.request.CashConfigSearchRequest;
import com.nbsaas.boot.pay.api.domain.response.CashConfigResponse;
import com.nbsaas.boot.pay.api.domain.simple.CashConfigSimple;
import com.nbsaas.boot.pay.rest.convert.CashConfigSimpleConvert;
import com.nbsaas.boot.pay.rest.convert.CashConfigEntityConvert;
import com.nbsaas.boot.pay.rest.convert.CashConfigResponseConvert;
import com.nbsaas.boot.pay.data.repository.CashConfigRepository;

import java.io.Serializable;
import com.nbsaas.boot.jpa.data.core.BaseResource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;

/**
*   业务接口实现
*/
@Transactional
@Service
public class CashConfigResource extends BaseResource  implements CashConfigApi {

    @Resource
    private CashConfigRepository cashConfigRepository;

    @Override
    public JpaRepositoryImplementation getJpaRepository() {
        return cashConfigRepository;
    }

    @Override
    public Function getConvertSimple() {
        return new CashConfigSimpleConvert();
    }

    @Override
    public Function getConvertForm() {
        return new CashConfigEntityConvert();
    }

    @Override
    public Function getConvertResponse() {
    return new CashConfigResponseConvert();
    }




}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy