update modules/kbase: mod 20 files

This commit is contained in:
jack ning
2025-04-08 15:55:15 +08:00
parent b360fe753c
commit 6b6a58cc97
18 changed files with 66 additions and 66 deletions

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-04-25 15:40:19
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-03-05 16:34:44
* @LastEditTime: 2025-04-08 15:52:39
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -22,7 +22,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.excel.EasyExcel;
import com.bytedesk.core.annotation.ActionAnnotation;
// import com.bytedesk.core.annotation.ActionAnnotation;
import com.bytedesk.core.base.BaseRestController;
import com.bytedesk.core.utils.BdDateUtils;
import com.bytedesk.core.utils.JsonResult;
@@ -71,7 +71,7 @@ public class ActionRestController extends BaseRestController<ActionRequest> {
// https://github.com/alibaba/easyexcel
// https://easyexcel.opensource.alibaba.com/docs/current/
@ActionAnnotation(title = "action", action = "export", description = "export action")
// @ActionAnnotation(title = "action", action = "导出", description = "export action")
@GetMapping("/export")
public Object export(ActionRequest request, HttpServletResponse response) {
// query data to export

View File

@@ -146,7 +146,7 @@ public class MessageRestController extends BaseRestController<MessageRequest> {
// https://github.com/alibaba/easyexcel
// https://easyexcel.opensource.alibaba.com/docs/current/
@ActionAnnotation(title = "message", action = "export", description = "export message")
@ActionAnnotation(title = "消息", action = "导出", description = "export message")
@GetMapping("/export")
public Object export(MessageRequest request, HttpServletResponse response) {
// query data to export

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-01-29 16:20:17
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-03-24 13:18:01
* @LastEditTime: 2025-04-08 15:53:44
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -68,7 +68,7 @@ public class OrganizationRestController extends BaseRestController<OrganizationR
return ResponseEntity.ok(JsonResult.success(organizationService.convertToResponse(org.get())));
}
@ActionAnnotation(title = "organization", action = "create", description = "organization create")
@ActionAnnotation(title = "组织", action = "新建", description = "organization create")
@PostMapping("/create")
public ResponseEntity<?> create(@RequestBody OrganizationRequest request) {
//
@@ -80,7 +80,7 @@ public class OrganizationRestController extends BaseRestController<OrganizationR
return ResponseEntity.ok(JsonResult.success(org));
}
@ActionAnnotation(title = "organization", action = "update", description = "organization update")
@ActionAnnotation(title = "组织", action = "更新", description = "organization update")
@PostMapping("/update")
public ResponseEntity<?> update(@RequestBody OrganizationRequest request) {
//

View File

@@ -67,7 +67,7 @@ public class UserRestController extends BaseRestController<UserRequest> {
}
@PreAuthorize("hasRole('SUPER')")
@ActionAnnotation(title = "user", action = "create", description = "create user info")
@ActionAnnotation(title = "user", action = "新建", description = "create user info")
@Override
public ResponseEntity<?> create(UserRequest request) {
@@ -77,7 +77,7 @@ public class UserRestController extends BaseRestController<UserRequest> {
}
@PreAuthorize("hasRole('SUPER')")
@ActionAnnotation(title = "user", action = "update", description = "update user info")
@ActionAnnotation(title = "user", action = "更新", description = "update user info")
@PostMapping("/update")
public ResponseEntity<?> update(@RequestBody UserRequest userRequest) {
@@ -87,7 +87,7 @@ public class UserRestController extends BaseRestController<UserRequest> {
}
@PreAuthorize("hasRole('SUPER')")
@ActionAnnotation(title = "user", action = "delete", description = "delete user info")
@ActionAnnotation(title = "user", action = "删除", description = "delete user info")
@Override
public ResponseEntity<?> delete(UserRequest request) {

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-01-29 16:21:24
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-04-02 15:58:54
* @LastEditTime: 2025-04-08 15:54:06
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -97,7 +97,7 @@ public class ThreadRestController extends BaseRestController<ThreadRequest> {
return ResponseEntity.ok(JsonResult.error("not found"));
}
@ActionAnnotation(title = "thread", action = "create", description = "create thread")
@ActionAnnotation(title = "会话", action = "新建", description = "create thread")
@Override
public ResponseEntity<?> create(@RequestBody ThreadRequest request) {
//
@@ -106,7 +106,7 @@ public class ThreadRestController extends BaseRestController<ThreadRequest> {
return ResponseEntity.ok(JsonResult.success(thread));
}
@ActionAnnotation(title = "thread", action = "update", description = "update thread")
@ActionAnnotation(title = "会话", action = "更新", description = "update thread")
@Override
public ResponseEntity<?> update(@RequestBody ThreadRequest request) {
@@ -169,7 +169,7 @@ public class ThreadRestController extends BaseRestController<ThreadRequest> {
return ResponseEntity.ok(JsonResult.success(threadResponse));
}
@ActionAnnotation(title = "thread", action = "close", description = "close thread")
@ActionAnnotation(title = "会话", action = "close", description = "close thread")
@PostMapping("/close")
public ResponseEntity<?> close(@RequestBody ThreadRequest request) {
@@ -188,7 +188,7 @@ public class ThreadRestController extends BaseRestController<ThreadRequest> {
return ResponseEntity.ok(JsonResult.success("delete thread success"));
}
@ActionAnnotation(title = "thread", action = "accept", description = "accept thread")
@ActionAnnotation(title = "会话", action = "accept", description = "accept thread")
@PostMapping("/accept")
public ResponseEntity<?> acceptByAgent (@RequestBody ThreadRequest request) {
@@ -199,7 +199,7 @@ public class ThreadRestController extends BaseRestController<ThreadRequest> {
// https://github.com/alibaba/easyexcel
// https://easyexcel.opensource.alibaba.com/docs/current/
@ActionAnnotation(title = "thread", action = "export", description = "export thread")
@ActionAnnotation(title = "会话", action = "导出", description = "export thread")
@GetMapping("/export")
public Object export(ThreadRequest request, HttpServletResponse response) {
// query data to export

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-03-15 11:35:53
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-03-05 16:37:46
* @LastEditTime: 2025-04-08 15:54:33
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -48,7 +48,7 @@ public class UploadRestController extends BaseRestController<UploadRequest> {
private final UploadRestService uploadService;
@ActionAnnotation(title = "upload", action = "uploadFile", description = "upload File")
@ActionAnnotation(title = "上传", action = "新建", description = "upload File")
@PostMapping("/file")
public ResponseEntity<?> uploadFile(
@RequestParam("file") MultipartFile file,
@@ -70,7 +70,7 @@ public class UploadRestController extends BaseRestController<UploadRequest> {
return ResponseEntity.ok(JsonResult.success("upload file success", response));
}
// @ActionAnnotation(title = "upload", action = "process", description = "process upload")
// @ActionAnnotation(title = "上传", action = "process", description = "process upload")
// @PostMapping("/process")
// public ResponseEntity<?> process(@RequestBody UploadRequest request) {
@@ -113,7 +113,7 @@ public class UploadRestController extends BaseRestController<UploadRequest> {
throw new UnsupportedOperationException("Unimplemented method 'update'");
}
@ActionAnnotation(title = "upload", action = "delete", description = "delete upload")
@ActionAnnotation(title = "上传", action = "删除", description = "delete upload")
@Override
public ResponseEntity<?> delete(UploadRequest request) {
// 更新数据库