Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
travel-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
cloud
travel-cloud
Commits
f6b5db30
提交
f6b5db30
authored
5月 22, 2025
作者:
hzh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
旅游卫士增加菜单接口
上级
eb611c92
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
74 行增加
和
1 行删除
+74
-1
AuthApiEnum.java
...ava/org/dromara/common/weishi/enums/auth/AuthApiEnum.java
+5
-1
MenusResponse.java
...va/org/dromara/common/weishi/model/res/MenusResponse.java
+28
-0
WeishiService.java
...java/org/dromara/common/weishi/service/WeishiService.java
+18
-0
WeishiServiceImpl.java
...dromara/common/weishi/service/impl/WeishiServiceImpl.java
+13
-0
WeishiController.java
.../dromara/mall/controller/weishi/app/WeishiController.java
+10
-0
没有找到文件。
ruoyi-common/ruoyi-common-51weishi/src/main/java/org/dromara/common/weishi/enums/auth/AuthApiEnum.java
浏览文件 @
f6b5db30
...
@@ -17,7 +17,11 @@ public enum AuthApiEnum implements ApiEnum {
...
@@ -17,7 +17,11 @@ public enum AuthApiEnum implements ApiEnum {
/**
/**
* 刷新AccessToken接口
* 刷新AccessToken接口
*/
*/
REFRESH
(
"/api/v1/account/refresh"
,
"刷新AccessToken接口"
);
REFRESH
(
"/api/v1/account/refresh"
,
"刷新AccessToken接口"
),
/**
* 获取登录用户的菜单
*/
MENUS
(
"/api/v1/meta/menus"
,
"获取登录用户的菜单"
);
/**
/**
* 接口URL
* 接口URL
...
...
ruoyi-common/ruoyi-common-51weishi/src/main/java/org/dromara/common/weishi/model/res/MenusResponse.java
0 → 100644
浏览文件 @
f6b5db30
package
org
.
dromara
.
common
.
weishi
.
model
.
res
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author wenhe
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
MenusResponse
{
/**
* maps
*/
private
Map
<
String
,
Object
>
Maps
;
/**
* 菜单
*/
private
List
<
Map
<
String
,
Object
>>
Menus
;
}
ruoyi-common/ruoyi-common-51weishi/src/main/java/org/dromara/common/weishi/service/WeishiService.java
浏览文件 @
f6b5db30
...
@@ -15,14 +15,24 @@ public interface WeishiService {
...
@@ -15,14 +15,24 @@ public interface WeishiService {
/**
/**
* 认证
* 认证
*
* @param request 请求参数
* @param request 请求参数
* @return 响应参数
* @return 响应参数
*/
*/
AuthResponse
authorize
(
AuthRequest
request
);
AuthResponse
authorize
(
AuthRequest
request
);
/**
* 获取菜单
*
* @param token token
* @return 响应数据
*/
MenusResponse
menus
(
String
token
);
/**
/**
* 保险下单接口
* 保险下单接口
*
*
* @param token token
* @param request 请求参数
* @param request 请求参数
* @return 响应数据
* @return 响应数据
*/
*/
...
@@ -31,6 +41,7 @@ public interface WeishiService {
...
@@ -31,6 +41,7 @@ public interface WeishiService {
/**
/**
* 核保接口
* 核保接口
*
*
* @param token token
* @param request 请求参数
* @param request 请求参数
* @return 响应数据
* @return 响应数据
*/
*/
...
@@ -39,6 +50,7 @@ public interface WeishiService {
...
@@ -39,6 +50,7 @@ public interface WeishiService {
/**
/**
* 签单接口
* 签单接口
*
*
* @param token token
* @param orderNum 订单号
* @param orderNum 订单号
* @return 数据
* @return 数据
*/
*/
...
@@ -46,6 +58,7 @@ public interface WeishiService {
...
@@ -46,6 +58,7 @@ public interface WeishiService {
/**
/**
* 作废接口
* 作废接口
*
* @param token token
* @param token token
* @param orderId 订单id
* @param orderId 订单id
*/
*/
...
@@ -72,6 +85,7 @@ public interface WeishiService {
...
@@ -72,6 +85,7 @@ public interface WeishiService {
/**
/**
* 订单撤单接口
* 订单撤单接口
*
*
* @param token token
* @param orderNum 订单号
* @param orderNum 订单号
*/
*/
void
insureCancel
(
String
token
,
String
orderNum
);
void
insureCancel
(
String
token
,
String
orderNum
);
...
@@ -79,6 +93,7 @@ public interface WeishiService {
...
@@ -79,6 +93,7 @@ public interface WeishiService {
/**
/**
* 保单撤单接口
* 保单撤单接口
*
*
* @param token token
* @param policyNum 保单号
* @param policyNum 保单号
*/
*/
void
policyCancel
(
String
token
,
String
policyNum
);
void
policyCancel
(
String
token
,
String
policyNum
);
...
@@ -86,6 +101,7 @@ public interface WeishiService {
...
@@ -86,6 +101,7 @@ public interface WeishiService {
/**
/**
* 产品列表接口
* 产品列表接口
*
*
* @param token token
* @return 产品列表
* @return 产品列表
*/
*/
List
<
ProductsResponse
>
productList
(
String
token
);
List
<
ProductsResponse
>
productList
(
String
token
);
...
@@ -93,6 +109,7 @@ public interface WeishiService {
...
@@ -93,6 +109,7 @@ public interface WeishiService {
/**
/**
* 产品详情
* 产品详情
*
*
* @param token token
* @param productId 产品id
* @param productId 产品id
* @return 产品详情
* @return 产品详情
*/
*/
...
@@ -101,6 +118,7 @@ public interface WeishiService {
...
@@ -101,6 +118,7 @@ public interface WeishiService {
/**
/**
* 获取保险公司相关文档接口
* 获取保险公司相关文档接口
*
*
* @param token token
* @param productId 产品id
* @param productId 产品id
* @param annexTp annexTp
* @param annexTp annexTp
* @return 数据
* @return 数据
...
...
ruoyi-common/ruoyi-common-51weishi/src/main/java/org/dromara/common/weishi/service/impl/WeishiServiceImpl.java
浏览文件 @
f6b5db30
...
@@ -41,6 +41,19 @@ public class WeishiServiceImpl implements WeishiService {
...
@@ -41,6 +41,19 @@ public class WeishiServiceImpl implements WeishiService {
return
JSON
.
parseObject
(
res
.
getData
(),
AuthResponse
.
class
);
return
JSON
.
parseObject
(
res
.
getData
(),
AuthResponse
.
class
);
}
}
@Override
public
MenusResponse
menus
(
String
token
)
{
ApiHttpResponse
res
=
Api
.
v1
(
RequestMethodEnum
.
POST
,
DomainEnum
.
PROD
.
getDomain
(),
AuthApiEnum
.
MENUS
.
getUrl
(),
token
,
null
);
if
(!
Objects
.
equals
(
res
.
getResultTp
(),
Code
.
SUCCESS
.
getCode
()))
{
throw
new
WeishiException
(
res
.
getResultMsg
());
}
return
JSON
.
parseObject
(
res
.
getData
(),
MenusResponse
.
class
);
}
@Override
@Override
public
ApplyResponse
insureApply
(
String
token
,
ApplyRequest
request
)
{
public
ApplyResponse
insureApply
(
String
token
,
ApplyRequest
request
)
{
ApplyResponse
res
=
Api
.
v1
(
RequestMethodEnum
.
POST
,
ApplyResponse
res
=
Api
.
v1
(
RequestMethodEnum
.
POST
,
...
...
ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/controller/weishi/app/WeishiController.java
浏览文件 @
f6b5db30
...
@@ -68,6 +68,16 @@ public class WeishiController {
...
@@ -68,6 +68,16 @@ public class WeishiController {
return
R
.
ok
(
weishiService
.
annex
(
getToken
(),
productId
,
annexTp
));
return
R
.
ok
(
weishiService
.
annex
(
getToken
(),
productId
,
annexTp
));
}
}
/**
* 获取菜单列表
*
* @return 菜单列表
*/
@GetMapping
(
"/menus"
)
public
R
<
MenusResponse
>
menus
()
{
return
R
.
ok
(
weishiService
.
menus
(
getToken
()));
}
/**
/**
* 承保接口
* 承保接口
*
*
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论