#set($packegeFeign=$package.Entity.replace("entity","feign"))
package $!{packegeFeign};

import $!{package.Entity}.$!{entity};
#set($voPackage=$package.Entity.replace("entity","vo"))
import $!{voPackage}.$!{entity}VO;
import org.springframework.stereotype.Component;
import javax.validation.Valid;
import java.util.List;

@Component
public class $!{entity}ClientFallback implements I$!{entity}Client {
    #if($!{cfg.hasWrapper})
        /**
         * 详情
         */
        @Override
        public $!{entity}VO detail($!{entity} $!{table.entityPath}) {
            return null;
        }

        /**
         * 查询 $!{table.comment}
         */
        @Override
        public List<$!{entity}VO> list($!{entity} $!{table.entityPath}) {
            return null;
        }

    #else
        /**
         * 详情
         */
        @Override
        public $!{entity} detail($!{entity} $!{table.entityPath}) {
            return null;
        }

        /**
         * 查询 $!{table.comment}
         */
        @Override
        public List<$!{entity}> list($!{entity} $!{table.entityPath}) {
            return null;
        }
    #end


        /**
         * 新增 $!{table.comment}
         */
        @Override
        public boolean save( $!{entity} $!{table.entityPath}) {
            return false;
        }

        /**
         * 修改 $!{table.comment}
         */
        @Override
        public boolean update( $!{entity} $!{table.entityPath}) {
            return false;
        }

        /**
         * 新增或修改 $!{table.comment}
         */
        @Override
        public boolean submit( $!{entity} $!{table.entityPath}) {
            return false;
        }

    #if($!{superEntityClass})

        /**
         * 删除 $!{table.comment}
         */
        @Override
        public boolean remove( String ids) {
            return false;
        }

    #else

        /**
         * 删除 $!{table.comment}
         */
        @Override
        public R remove(String ids) {
            return R.fail("fallback message");
        }

    #end
}
