Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a0eb8c12
authored
Nov 21, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加新增消息feign接口
1 parent
149ddb2d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
2 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/DispatchServiceApplication.java
project-dispatch/src/main/resources/application-dev.yaml
project-interface/src/main/java/com/dituhui/pea/msg/IMsg.java
project-interface/src/main/java/com/dituhui/pea/pojo/MsgDTO.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/DispatchServiceApplication.java
View file @
a0eb8c1
...
@@ -27,7 +27,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
...
@@ -27,7 +27,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
*/
*/
@SpringBootApplication
@SpringBootApplication
@EnableScheduling
@EnableScheduling
@EnableFeignClients
(
basePackages
=
{
"com.dituhui.pea.user"
})
@EnableFeignClients
(
basePackages
=
{
"com.dituhui.pea.user"
,
"com.dituhui.pea.msg"
})
@Import
(
cn
.
hutool
.
extra
.
spring
.
SpringUtil
.
class
)
@Import
(
cn
.
hutool
.
extra
.
spring
.
SpringUtil
.
class
)
public
class
DispatchServiceApplication
{
public
class
DispatchServiceApplication
{
...
...
project-dispatch/src/main/resources/application-dev.yaml
View file @
a0eb8c1
...
@@ -3,7 +3,7 @@ server:
...
@@ -3,7 +3,7 @@ server:
dispatch
:
dispatch
:
cron
:
cron
:
expr
:
0
20
8-23 * * ?
expr
:
0
58
8-23 * * ?
next-day-limit
:
2
next-day-limit
:
2
scheduler
:
scheduler
:
...
...
project-interface/src/main/java/com/dituhui/pea/msg/IMsg.java
0 → 100644
View file @
a0eb8c1
package
com
.
dituhui
.
pea
.
msg
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.pojo.*
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* 角色相关接口
*/
@FeignClient
(
value
=
"project-order"
,
contextId
=
"msg"
)
public
interface
IMsg
{
/**
* 新增消息
*
* @param dto 消息
* @return
*/
@PostMapping
(
value
=
"/pea-order/msg/add"
)
public
Result
<
Boolean
>
add
(
@RequestBody
@Valid
MsgDTO
dto
);
}
project-interface/src/main/java/com/dituhui/pea/pojo/MsgDTO.java
0 → 100644
View file @
a0eb8c1
package
com
.
dituhui
.
pea
.
pojo
;
import
lombok.Data
;
@Data
public
class
MsgDTO
{
/**
* 大区ID(大区Id、分部Id、分组Id只需传一个)
*/
private
String
clusterId
;
/**
* 分部ID
*/
private
String
branchId
;
/**
* 小组ID
*/
private
String
groupId
;
/**
* 消息类型,0:派工类,1:服务类,2:容量类
*/
private
Integer
type
;
/**
* 消息内容
*/
private
String
content
;
/**
* 单号集合,以“、”连接
*/
private
String
orderIds
;
/**
* 标签类型,0:紧急,1:正常
*/
private
Integer
tag
;
/**
* 容量所属图层 ID
*/
private
String
capacityLayerId
;
/**
* 容量所属日期
*/
private
String
capacityDate
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment