| package com.moral.api.service; | 
|   | 
| import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
| import com.baomidou.mybatisplus.extension.service.IService; | 
| import com.moral.api.entity.Test; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.transaction.annotation.Transactional; | 
|   | 
| import java.util.Map; | 
|   | 
| /** | 
|  * <p> | 
|  *  服务类 | 
|  * </p> | 
|  * | 
|  * @author moral | 
|  * @since 2021-02-25 | 
|  */ | 
| @Service | 
| @Transactional | 
| public interface TestService extends IService<Test> { | 
|   | 
|     Page<Test> selectByPage(Test test, Integer page, Integer size); | 
|   | 
|     @Transactional | 
|     void saveTest() throws Exception; | 
|   | 
|     Map<String,String> getMap(); | 
| } |