Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
c17e74e5
You need to sign in or sign up before continuing.
Commit
c17e74e5
authored
Aug 28, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EKP 权限
parent
bb5b4888
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
386 deletions
+1
-386
Message.java
...ava/com/yifu/cloud/plus/v1/permission/entity/Message.java
+0
-18
MsgInfo.java
...ava/com/yifu/cloud/plus/v1/permission/entity/MsgInfo.java
+0
-107
TMessageInfo.java
...om/yifu/cloud/plus/v1/permission/entity/TMessageInfo.java
+0
-135
EkpMsgUtil.java
...a/com/yifu/cloud/plus/v1/permission/utils/EkpMsgUtil.java
+0
-12
HttpUtils.java
...va/com/yifu/cloud/plus/v1/permission/utils/HttpUtils.java
+0
-83
EkpAlertVo.java
...java/com/yifu/cloud/plus/v1/permission/vo/EkpAlertVo.java
+0
-30
PermissionApplication.java
.../yifu/cloud/plus/v1/permission/PermissionApplication.java
+1
-1
No files found.
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/Message.java
deleted
100644 → 0
View file @
bb5b4888
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
.
entity
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
lombok.Data
;
/**
* @Author fxj
* @Description EKP 消息提醒服务
* @Date 11:18 2023/5/30
* @Param
* @return
**/
@Data
public
class
Message
extends
BaseEntity
{
private
String
title
;
private
String
url
;
private
String
content
;
}
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/MsgInfo.java
deleted
100644 → 0
View file @
bb5b4888
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
java.time.LocalDateTime
;
/**
* @author fxj
* @date 2023-06-01 10:41:25
*/
@Data
@TableName
(
"msg_info"
)
@Schema
(
description
=
"EKP 消息提醒"
)
public
class
MsgInfo
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"id"
)
@Schema
(
description
=
"id"
)
private
String
id
;
/**
* 订单号
*/
@ExcelAttribute
(
name
=
"订单号"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"orderId不能超过50个字符"
)
@ExcelProperty
(
"订单号"
)
@Schema
(
description
=
"订单号"
)
private
String
orderId
;
/**
* URL
*/
@ExcelAttribute
(
name
=
"URL"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"URL不能超过200个字符"
)
@ExcelProperty
(
"URL"
)
@Schema
(
description
=
"URL"
)
private
String
url
;
/**
* 提交人
*/
@ExcelAttribute
(
name
=
"提交人"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"提交人不能超过50个字符"
)
@ExcelProperty
(
"提交人"
)
@Schema
(
description
=
"提交人"
)
private
String
orderNo
;
/**
* 0 接单 1 超时 2变更
*/
@ExcelAttribute
(
name
=
"0 接单 1 超时 2变更"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"0 接单 1 超时 2变更不能超过1个字符"
)
@ExcelProperty
(
"0 接单 1 超时 2变更"
)
@Schema
(
description
=
"0 接单 1 超时 2变更 3薪资状态待支出"
)
private
String
alertType
;
/**
* 0 未阅 1 已阅
*/
@ExcelAttribute
(
name
=
"0 未阅 1 已阅"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"0 未阅 1 已阅不能超过1个字符"
)
@ExcelProperty
(
"0 未阅 1 已阅"
)
@Schema
(
description
=
"0 未阅 1 已阅"
)
private
String
readStatus
;
/**
* 提醒人
*/
@ExcelAttribute
(
name
=
"提醒人"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"提醒人不能超过1个字符"
)
@ExcelProperty
(
"提醒人"
)
@Schema
(
description
=
"提醒人"
)
private
String
alertUser
;
private
LocalDateTime
createTime
;
/**
* 项目名称
*/
@ExcelAttribute
(
name
=
"项目名称"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"项目名称不能超过1个字符"
)
@ExcelProperty
(
"项目名称"
)
@Schema
(
description
=
"项目名称"
)
private
String
domainName
;
}
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/TMessageInfo.java
deleted
100644 → 0
View file @
bb5b4888
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.hibernate.validator.constraints.Length
;
import
java.util.Date
;
/**
* 消息提醒
*
* @author huyc
* @date 2023-07-26 14:19:33
*/
@Data
@TableName
(
"t_message_info"
)
@EqualsAndHashCode
()
@Schema
(
description
=
"消息提醒"
)
public
class
TMessageInfo
{
/**
* ID
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"ID"
)
@Schema
(
description
=
"ID"
)
private
String
id
;
/**
* 提交人-表单制作人
*/
@ExcelAttribute
(
name
=
"提交人-表单制作人"
,
maxLength
=
10
)
@Length
(
max
=
10
,
message
=
"提交人-表单制作人不能超过10个字符"
)
@ExcelProperty
(
"提交人-表单制作人"
)
@Schema
(
description
=
"提交人-表单制作人"
)
private
String
submitUser
;
/**
* 0 待办 1 待阅
*/
@ExcelAttribute
(
name
=
"0 待办 1 待阅"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"0 待办 1 待阅不能超过1个字符"
)
@ExcelProperty
(
"0 待办 1 待阅"
)
@Schema
(
description
=
"0 待办 1 待阅"
)
private
String
alertType
;
/**
* 0 已处理 1 未处理
*/
@ExcelAttribute
(
name
=
"0 已处理 1 未处理"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"0 已处理 1 未处理不能超过1个字符"
)
@ExcelProperty
(
"0 已处理 1 未处理"
)
@Schema
(
description
=
"0 已处理 1 未处理"
)
private
String
handlerStatus
;
/**
* 处理人-当前提醒人
*/
@ExcelAttribute
(
name
=
"处理人-当前提醒人"
,
maxLength
=
10
)
@Length
(
max
=
10
,
message
=
"处理人-当前提醒人不能超过10个字符"
)
@ExcelProperty
(
"处理人-当前提醒人"
)
@Schema
(
description
=
"处理人-当前提醒人"
)
private
String
alertUser
;
/**
* 处理人-当前提醒人
*/
@Schema
(
description
=
"处理人-当前提醒人id"
)
private
String
alertUserId
;
/**
* 是否通知企业微信用户 0 是 1 否
*/
@ExcelAttribute
(
name
=
"是否通知企业微信用户"
,
maxLength
=
1
)
@ExcelProperty
(
"是否通知企业微信用户"
)
@Schema
(
description
=
"是否通知企业微信用户 0 是 1 否"
)
private
String
wxFlag
;
/**
* listUrl
*/
@ExcelAttribute
(
name
=
"listUrl"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"listUrl不能超过200个字符"
)
@ExcelProperty
(
"listUrl"
)
@Schema
(
description
=
"listUrl"
)
private
String
listUrl
;
/**
* infoUrl
*/
@ExcelAttribute
(
name
=
"infoUrl"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"infoUrl不能超过200个字符"
)
@ExcelProperty
(
"infoUrl"
)
@Schema
(
description
=
"infoUrl"
)
private
String
infoUrl
;
/**
* 模块
*/
@ExcelAttribute
(
name
=
"模块"
,
maxLength
=
20
)
@Length
(
max
=
20
,
message
=
"模块不能超过20个字符"
)
@ExcelProperty
(
"模块"
)
@Schema
(
description
=
"模块"
)
private
String
modelType
;
/**
* 关联id
*/
@ExcelAttribute
(
name
=
"关联id"
,
maxLength
=
32
)
@Length
(
max
=
32
,
message
=
"关联id不能超过32个字符"
)
@ExcelProperty
(
"关联id"
)
@Schema
(
description
=
"关联id"
)
private
String
modelId
;
/**
* 创建时间
*/
@ExcelAttribute
(
name
=
"创建时间"
,
isDate
=
true
)
@ExcelProperty
(
"创建时间"
)
@Schema
(
description
=
"创建时间"
)
private
Date
createTime
;
}
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/permission/utils/EkpMsgUtil.java
deleted
100644 → 0
View file @
bb5b4888
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
.
utils
;
/**
* @author hgw2
* @description 测试身份证
* @date 2022/5/7
*/
public
class
EkpMsgUtil
{
}
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/permission/utils/HttpUtils.java
deleted
100644 → 0
View file @
bb5b4888
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
.
utils
;
import
org.apache.http.HttpEntity
;
import
org.apache.http.HttpStatus
;
import
org.apache.http.client.config.RequestConfig
;
import
org.apache.http.client.methods.CloseableHttpResponse
;
import
org.apache.http.client.methods.RequestBuilder
;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.util.EntityUtils
;
import
java.nio.charset.Charset
;
import
java.util.Map
;
/**
* @author hgw2
* @description 发送
* @date 2022/5/7
*/
public
class
HttpUtils
{
private
static
final
int
REQUEST_TIMEOUT
=
3
*
1000
;
// 设置请求超时10秒钟
private
static
final
int
CONNECT_TIMEOUT
=
5
*
1000
;
// 连接超时时间
private
static
final
int
SO_TIMEOUT
=
10
*
1000
;
// 数据传输超时
private
static
final
String
ENCODING
=
"UTF-8"
;
// 务必单例
private
static
CloseableHttpClient
client
;
static
{
RequestConfig
requestConfig
=
RequestConfig
.
custom
()
.
setConnectTimeout
(
CONNECT_TIMEOUT
)
.
setConnectionRequestTimeout
(
REQUEST_TIMEOUT
)
.
setSocketTimeout
(
SO_TIMEOUT
)
.
build
();
client
=
HttpClients
.
custom
().
setDefaultRequestConfig
(
requestConfig
).
setMaxConnTotal
(
50
).
build
();
}
public
static
String
get
(
String
url
,
Map
<
String
,
String
>
paramsMap
)
{
return
send
(
RequestBuilder
.
get
(
url
),
paramsMap
);
}
public
static
String
post
(
String
url
,
Map
<
String
,
String
>
paramsMap
)
{
return
send
(
RequestBuilder
.
post
(
url
),
paramsMap
);
}
public
static
String
send
(
RequestBuilder
requestBuilder
,
Map
<
String
,
String
>
paramsMap
)
{
requestBuilder
.
setCharset
(
Charset
.
forName
(
ENCODING
));
String
responseText
=
""
;
if
(
paramsMap
!=
null
)
{
for
(
Map
.
Entry
<
String
,
String
>
param
:
paramsMap
.
entrySet
())
{
requestBuilder
.
addParameter
(
param
.
getKey
(),
param
.
getValue
());
}
CloseableHttpResponse
response
=
null
;
try
{
response
=
client
.
execute
(
requestBuilder
.
build
());
if
(
response
.
getStatusLine
().
getStatusCode
()
==
HttpStatus
.
SC_OK
)
{
HttpEntity
entity
=
response
.
getEntity
();
if
(
entity
!=
null
)
{
responseText
=
EntityUtils
.
toString
(
entity
,
ENCODING
);
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//正式项目中请改为log打印
}
finally
{
try
{
response
.
close
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//正式项目中请改为log打印
}
}
}
return
responseText
;
}
}
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/EkpAlertVo.java
deleted
100644 → 0
View file @
bb5b4888
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
.
vo
;
import
lombok.Data
;
/**
* @Author fxj
* @Date 2023/5/30
* @Description
* @Version 1.0
*/
@Data
public
class
EkpAlertVo
{
/**
* 类型 0 接单 1 超时 2变更
**/
private
String
type
;
/**
* 订单号
**/
private
String
orderId
;
/**
* 表单类型:0 项目订单
**/
private
String
item
;
/**
* 提醒人
**/
private
String
alertUser
;
}
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/PermissionApplication.java
View file @
c17e74e5
package
com
.
yifu
.
cloud
.
plus
.
v1
.
msg
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
permission
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.EnableYifuResourceServer
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.EnableYifuResourceServer
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment