spring-boot-realworld-examp.../src/main/java/io/spring/infrastructure/comment/CommentMapper.java
2017-08-15 16:36:07 +08:00

15 lines
374 B
Java

package io.spring.infrastructure.comment;
import io.spring.core.comment.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
@Component
@Mapper
public interface CommentMapper {
void insert(@Param("comment") Comment comment);
Comment findById(@Param("id") String id);
}