🔄Update: 天气板块

This commit is contained in:
2025-10-28 10:31:12 +08:00
parent 6c53f352df
commit ef4a5e18c9
19 changed files with 293 additions and 4 deletions
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.hezhaohui</groupId>
<artifactId>lark-panel</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>common</artifactId>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
@@ -0,0 +1,12 @@
package cn.hezhaohui.common;
public class AIConstant {
public static final String SYSTEM_PROMPT = "请根据输入的 [BackGround] 和 [Content] 生成内容";
public static final String BACKGROUND_WEATHER = "【要求】请根据传入的今日数据,采用符合的语气,emjoy和符号,带一点想象,用简洁的语句,描述一下想象中的风景,体感,并附带一点小Tips。\n" +
"【输出格式】今天的星露谷....(控制在30字)\\nTips。\n" +
"【输出示例】\n" +
"今天的星露谷天气阴沉,气温舒适,北风轻轻吹拂,风力微弱,湿度较高,仿佛连空气都带着一丝凉意。这种天气最适合在家中泡一杯热茶,或者在庭院里摆上几张藤椅,享受难得的宁静。\n" +
"Tips:可以尝试在这样的天气里种植一些耐阴植物,比如蕨类或苔藓,为你的农场增添一抹绿意哦!\uD83D\uDE09\uD83C\uDF31";
}
@@ -0,0 +1,8 @@
package cn.hezhaohui.common;
public class AppConstant {
public final static String APP_ID = "cli_a875a60984b5500c";
public final static String APP_SECRET = "toAfmMddNEG9qWsYngs7wch0HwW4vAls";
public final static String APP_USER_OPEN_ID = "ou_9eb248881be923bad599f342c22a4e7a";
}
@@ -0,0 +1,8 @@
package cn.hezhaohui.common;
public class CardConstant {
public static final String CARD_WEATHER_ID = "AAqxas5etOJDx";
public static final String CARD_WEATHER_VERSION = "1.0.5";
}
@@ -0,0 +1,8 @@
package cn.hezhaohui.common;
public class WeatherConstant {
public static final String API_BASE_URL = "https://restapi.amap.com/v3/weather/weatherInfo";
public static final String API_SECRET = "d0f5599ac19a5e4553ba68cd1781d2df";
public static final String CITY_CODE_WUHAN = "420100";
}