Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
65c9ab23
Commit
65c9ab23
authored
Sep 09, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服悠
parent
196c0ba2
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
151 additions
and
88 deletions
+151
-88
CustomerServiceDTO.java
...ain/java/com/xxfc/platform/im/dto/CustomerServiceDTO.java
+1
-1
CustomerService.java
...ain/java/com/xxfc/platform/im/entity/CustomerService.java
+5
-1
CustomerServiceVO.java
.../main/java/com/xxfc/platform/im/vo/CustomerServiceVO.java
+1
-1
CustomerServiceBiz.java
...ain/java/com/xxfc/platform/im/biz/CustomerServiceBiz.java
+114
-79
CustomerServiceController.java
.../com/xxfc/platform/im/rest/CustomerServiceController.java
+7
-3
CustomerServiceAdminController.java
...latform/im/rest/admin/CustomerServiceAdminController.java
+23
-3
No files found.
xx-im/xx-im-api/src/main/java/com/xxfc/platform/im/dto/CustomerServiceDTO.java
View file @
65c9ab23
...
...
@@ -18,7 +18,7 @@ import lombok.NoArgsConstructor;
public
class
CustomerServiceDTO
{
private
static
final
long
serialVersionUID
=
1L
;
private
Stri
ng
id
;
private
Lo
ng
id
;
/**
* 客服名称
...
...
xx-im/xx-im-api/src/main/java/com/xxfc/platform/im/entity/CustomerService.java
View file @
65c9ab23
...
...
@@ -31,7 +31,7 @@ public class CustomerService {
@Id
@javax
.
persistence
.
Id
@GeneratedValue
(
generator
=
"JDBC"
)
private
Stri
ng
id
;
private
Lo
ng
id
;
/**
* 客服名称
*/
...
...
@@ -76,6 +76,10 @@ public class CustomerService {
* 客服电话
*/
private
String
telphone
;
/**
* 登录密码
*/
private
String
password
;
/**
* 是事删除 true:删除状态 1:正常
*/
...
...
xx-im/xx-im-api/src/main/java/com/xxfc/platform/im/vo/CustomerServiceVO.java
View file @
65c9ab23
...
...
@@ -20,7 +20,7 @@ import java.io.Serializable;
public
class
CustomerServiceVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
Stri
ng
id
;
private
Lo
ng
id
;
/**
* 客服名称
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/CustomerServiceBiz.java
View file @
65c9ab23
This diff is collapsed.
Click to expand it.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/rest/CustomerServiceController.java
View file @
65c9ab23
package
com
.
xxfc
.
platform
.
im
.
rest
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.xxfc.platform.im.biz.CustomerServiceBiz
;
import
com.xxfc.platform.im.biz.CustomerServiceMGBiz
;
import
com.xxfc.platform.im.vo.CustomerServiceVO
;
import
lombok.RequiredArgsConstructor
;
...
...
@@ -23,16 +24,19 @@ import java.util.List;
@RequestMapping
(
"/app/unauth/customer_service"
)
public
class
CustomerServiceController
{
private
final
CustomerServiceMGBiz
customerServiceMGBiz
;
private
final
CustomerServiceBiz
customerServiceBiz
;
@GetMapping
(
"/list"
)
public
ObjectRestResponse
<
List
<
CustomerServiceVO
>>
findAll
(){
List
<
CustomerServiceVO
>
customerServiceVOS
=
customerServiceMGBiz
.
findAll
();
// List<CustomerServiceVO> customerServiceVOS = customerServiceMGBiz.findAll();
List
<
CustomerServiceVO
>
customerServiceVOS
=
customerServiceBiz
.
findAll
();
return
ObjectRestResponse
.
succ
(
customerServiceVOS
);
}
@GetMapping
(
"/{id}"
)
public
ObjectRestResponse
<
CustomerServiceVO
>
findById
(
@PathVariable
(
value
=
"id"
)
String
id
){
CustomerServiceVO
customerServiceVO
=
customerServiceMGBiz
.
findById
(
id
);
public
ObjectRestResponse
<
CustomerServiceVO
>
findById
(
@PathVariable
(
value
=
"id"
)
Long
id
){
// CustomerServiceVO customerServiceVO = customerServiceMGBiz.findById(id);
CustomerServiceVO
customerServiceVO
=
customerServiceBiz
.
findById
(
id
);
return
ObjectRestResponse
.
succ
(
customerServiceVO
);
}
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/rest/admin/CustomerServiceAdminController.java
View file @
65c9ab23
package
com
.
xxfc
.
platform
.
im
.
rest
.
admin
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.im.biz.CustomerServiceBiz
;
import
com.xxfc.platform.im.biz.CustomerServiceMGBiz
;
import
com.xxfc.platform.im.biz.UserBiz
;
import
com.xxfc.platform.im.dto.CustomerServiceDTO
;
import
com.xxfc.platform.im.vo.CustomerServiceVO
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -21,12 +24,27 @@ public class CustomerServiceAdminController {
private
final
CustomerServiceMGBiz
customerServiceMGBiz
;
private
final
CustomerServiceBiz
customerServiceBiz
;
private
final
UserBiz
userBiz
;
@GetMapping
(
"/page"
)
public
ObjectRestResponse
<
PageDataVO
<
CustomerServiceVO
>>
findCustomerServiceWithPage
(
@RequestParam
(
value
=
"page"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
)
Integer
limit
)
{
PageDataVO
<
CustomerServiceVO
>
pageDataVO
=
customerServiceBiz
.
findCustomerServiceWithPage
(
page
,
limit
);
return
ObjectRestResponse
.
succ
(
pageDataVO
);
}
@GetMapping
(
"/{id}"
)
public
ObjectRestResponse
<
CustomerServiceDTO
>
findCustomerService
(
@PathVariable
(
value
=
"id"
)
Long
id
){
CustomerServiceDTO
customerServiceDTO
=
customerServiceBiz
.
findCustomerServiceById
(
id
);
return
ObjectRestResponse
.
succ
(
customerServiceDTO
);
}
@PostMapping
(
"/add"
)
public
ObjectRestResponse
<
Void
>
addCustomerService
(
@RequestBody
CustomerServiceDTO
customerServiceDTO
){
customerServiceMGBiz
.
addCustomerService
(
customerServiceDTO
);
// customerServiceMGBiz.addCustomerService(customerServiceDTO);
customerServiceBiz
.
addCustomerService
(
customerServiceDTO
);
return
ObjectRestResponse
.
succ
();
}
...
...
@@ -34,13 +52,15 @@ public class CustomerServiceAdminController {
public
ObjectRestResponse
<
Void
>
updateCustomerService
(
@PathVariable
(
value
=
"telphone"
)
String
telphone
,
@PathVariable
(
value
=
"password"
)
String
password
){
userBiz
.
updatePasswordByPhone
(
telphone
,
password
);
customerServiceBiz
.
updatePasswordByPhone
(
telphone
,
password
);
return
ObjectRestResponse
.
succ
();
}
@DeleteMapping
(
"/delete/{id}/{imUserId}"
)
public
ObjectRestResponse
<
Void
>
deleteCustomerService
(
@PathVariable
(
value
=
"id"
)
Stri
ng
id
,
public
ObjectRestResponse
<
Void
>
deleteCustomerService
(
@PathVariable
(
value
=
"id"
)
Lo
ng
id
,
@PathVariable
(
value
=
"imUserId"
)
Integer
imUserId
){
customerServiceMGBiz
.
updateCustomerServiceIsDelToTrue
(
id
,
imUserId
);
// customerServiceMGBiz.updateCustomerServiceIsDelToTrue(id,imUserId);
customerServiceBiz
.
updateCustomerServiceIsDelToTrue
(
id
,
imUserId
);
return
ObjectRestResponse
.
succ
();
}
}
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