添加了天气的相应的功能模块
This commit is contained in:
20
src/main/java/com/xkrs/dao/WeatherDao.java
Normal file
20
src/main/java/com/xkrs/dao/WeatherDao.java
Normal file
@ -0,0 +1,20 @@
|
||||
package com.xkrs.dao;
|
||||
|
||||
import com.xkrs.model.entity.Weather;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @Author: XinYi Song
|
||||
* @Date: 2022/2/14 10:50
|
||||
*/
|
||||
@Component
|
||||
public interface WeatherDao extends JpaRepository<Weather,Long> {
|
||||
|
||||
/**
|
||||
* 根据时间查询天气的状况
|
||||
* @param time
|
||||
* @return
|
||||
*/
|
||||
Weather findByWeatherTime(String time);
|
||||
}
|
Reference in New Issue
Block a user