Skip to content

Commit

Permalink
update log打印
Browse files Browse the repository at this point in the history
  • Loading branch information
gallonyin committed Sep 16, 2023
1 parent 0186dbe commit e68ee02
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions app/src/main/java/org/yameida/worktool/service/WeworkController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object WeworkController {
*/
@RequestMapping
fun consoleToast(message: ExecCallbackBean): Boolean {
LogUtils.d("consoleToast(): ${message.errorCode} ${message.errorReason}")
LogUtils.d("REQUEST consoleToast(): ${message.errorCode} ${message.errorReason}")
return WeworkInteractionImpl.consoleToast(message, message.errorCode, message.errorReason)
}

Expand All @@ -34,7 +34,7 @@ object WeworkController {
*/
@RequestMapping
fun stopAndGoHome() {
LogUtils.d("stopAndGoHome()")
LogUtils.d("REQUEST stopAndGoHome()")
enableLoopRunning = false
mainLoopRunning = false
goHome()
Expand All @@ -46,7 +46,7 @@ object WeworkController {
*/
@RequestMapping
fun loopReceiveNewMessage() {
LogUtils.d("loopReceiveNewMessage() enableLoopRunning: $enableLoopRunning")
LogUtils.d("REQUEST loopReceiveNewMessage() enableLoopRunning: $enableLoopRunning")
WeworkLoopImpl.mainLoop()
}

Expand All @@ -60,7 +60,7 @@ object WeworkController {
*/
@RequestMapping
fun sendMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("sendMessage(): ${message.titleList} ${message.receivedContent} ${message.at} ${message.atList?.joinToString()}")
LogUtils.d("REQUEST sendMessage(): ${message.titleList} ${message.receivedContent} ${message.at} ${message.atList?.joinToString()}")
return WeworkOperationImpl.sendMessage(message, message.titleList, message.receivedContent, message.at, message.atList)
}

Expand All @@ -76,7 +76,7 @@ object WeworkController {
*/
@RequestMapping
fun replyMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("replyMessage(): ${message.receivedName} ${message.originalContent} ${message.textType} ${message.receivedContent}")
LogUtils.d("REQUEST replyMessage(): ${message.receivedName} ${message.originalContent} ${message.textType} ${message.receivedContent}")
return WeworkOperationImpl.replyMessage(
message,
message.titleList,
Expand All @@ -100,7 +100,7 @@ object WeworkController {
*/
@RequestMapping
fun relayMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("relayMessage(): ${message.titleList} ${message.receivedName} ${message.originalContent} ${message.textType} ${message.nameList} ${message.extraText}")
LogUtils.d("REQUEST relayMessage(): ${message.titleList} ${message.receivedName} ${message.originalContent} ${message.textType} ${message.nameList} ${message.extraText}")
return WeworkOperationImpl.relayMessage(
message,
message.titleList,
Expand All @@ -124,7 +124,7 @@ object WeworkController {
*/
@RequestMapping
fun initGroup(message: WeworkMessageBean): Boolean {
LogUtils.d("initGroup(): ${message.groupName} ${message.selectList} ${message.groupAnnouncement} ${message.groupRemark} ${message.groupTemplate}")
LogUtils.d("REQUEST initGroup(): ${message.groupName} ${message.selectList} ${message.groupAnnouncement} ${message.groupRemark} ${message.groupTemplate}")
return WeworkOperationImpl.initGroup(
message,
message.groupName,
Expand Down Expand Up @@ -160,7 +160,7 @@ object WeworkController {
*/
@RequestMapping
fun updateGroup(message: WeworkMessageBean): Boolean {
LogUtils.d("updateGroup(): ${message.groupName} ${message.newGroupName} ${message.newGroupAnnouncement} ${message.selectList} ${message.showMessageHistory} ${message.removeList} ${message.groupRemark} ${message.groupTemplate}")
LogUtils.d("REQUEST updateGroup(): ${message.groupName} ${message.newGroupName} ${message.newGroupAnnouncement} ${message.selectList} ${message.showMessageHistory} ${message.removeList} ${message.groupRemark} ${message.groupTemplate}")
return WeworkOperationImpl.updateGroup(
message,
message.groupName,
Expand All @@ -181,7 +181,7 @@ object WeworkController {
*/
@RequestMapping
fun dismissGroup(message: WeworkMessageBean): Boolean {
LogUtils.d("dismissGroup(): ${message.groupName}")
LogUtils.d("REQUEST dismissGroup(): ${message.groupName}")
return WeworkOperationImpl.dismissGroup(
message,
message.groupName
Expand All @@ -196,7 +196,7 @@ object WeworkController {
*/
@RequestMapping
fun addFriendByGroup(message: WeworkMessageBean): Boolean {
LogUtils.d("addFriendByGroup(): ${message.groupName} ${message.friend}")
LogUtils.d("REQUEST addFriendByGroup(): ${message.groupName} ${message.friend}")
return WeworkOperationImpl.addFriendByGroup(
message,
message.groupName,
Expand All @@ -212,7 +212,7 @@ object WeworkController {
*/
@RequestMapping
fun modifyGroupMemberInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("modifyGroupMemberInfo(): ${message.groupName} ${message.friend}")
LogUtils.d("REQUEST modifyGroupMemberInfo(): ${message.groupName} ${message.friend}")
return WeworkOperationImpl.modifyGroupMemberInfo(
message,
message.groupName,
Expand All @@ -228,7 +228,7 @@ object WeworkController {
*/
@RequestMapping
fun addNeedDeal(message: WeworkMessageBean): Boolean {
LogUtils.d("addNeedDeal(): ${message.titleList} ${message.receivedContent}")
LogUtils.d("REQUEST addNeedDeal(): ${message.titleList} ${message.receivedContent}")
return WeworkOperationImpl.addNeedDeal(
message,
message.titleList,
Expand All @@ -242,7 +242,7 @@ object WeworkController {
*/
@RequestMapping
fun clockIn(message: WeworkMessageBean): Boolean {
LogUtils.d("clockIn(): ")
LogUtils.d("REQUEST clockIn(): ")
return WeworkOperationImpl.clockIn(message)
}

Expand All @@ -253,7 +253,7 @@ object WeworkController {
*/
@RequestMapping
fun switchCorp(message: WeworkMessageBean): Boolean {
LogUtils.d("switchCorp(): ${message.objectName}")
LogUtils.d("REQUEST switchCorp(): ${message.objectName}")
return WeworkOperationImpl.switchCorp(message, message.objectName)
}

Expand All @@ -266,7 +266,7 @@ object WeworkController {
*/
@RequestMapping
fun pushMicroDiskImage(message: WeworkMessageBean): Boolean {
LogUtils.d("pushMicroDiskImage(): ${message.titleList} ${message.objectName} ${message.extraText}")
LogUtils.d("REQUEST pushMicroDiskImage(): ${message.titleList} ${message.objectName} ${message.extraText}")
return WeworkOperationImpl.pushMicroDiskImage(
message,
message.titleList,
Expand All @@ -284,7 +284,7 @@ object WeworkController {
*/
@RequestMapping
fun pushMicroDiskFile(message: WeworkMessageBean): Boolean {
LogUtils.d("pushMicroDiskFile(): ${message.titleList} ${message.objectName} ${message.extraText}")
LogUtils.d("REQUEST pushMicroDiskFile(): ${message.titleList} ${message.objectName} ${message.extraText}")
return WeworkOperationImpl.pushMicroDiskFile(
message,
message.titleList,
Expand All @@ -305,7 +305,7 @@ object WeworkController {
*/
@RequestMapping
fun pushMicroprogram(message: WeworkMessageBean): Boolean {
LogUtils.d("pushMicroprogram(): ${message.titleList} ${message.objectName} ${message.receivedContent} ${message.originalContent} ${message.fileUrl} ${message.extraText}")
LogUtils.d("REQUEST pushMicroprogram(): ${message.titleList} ${message.objectName} ${message.receivedContent} ${message.originalContent} ${message.fileUrl} ${message.extraText}")
return WeworkOperationImpl.pushMicroprogram(
message,
message.titleList,
Expand All @@ -327,7 +327,7 @@ object WeworkController {
*/
@RequestMapping
fun pushOffice(message: WeworkMessageBean): Boolean {
LogUtils.d("pushOffice(): ${message.titleList} ${message.objectName} ${message.extraText}")
LogUtils.d("REQUEST pushOffice(): ${message.titleList} ${message.objectName} ${message.extraText}")
return WeworkOperationImpl.pushOffice(
message,
message.titleList,
Expand All @@ -348,7 +348,7 @@ object WeworkController {
*/
@RequestMapping
fun pushFile(message: WeworkMessageBean): Boolean {
LogUtils.d("pushFile(): ${message.titleList} ${message.objectName} ${message.fileUrl} ${message.fileBase64?.substring(0, 100)} ${message.fileType} ${message.extraText}")
LogUtils.d("REQUEST pushFile(): ${message.titleList} ${message.objectName} ${message.fileUrl} ${message.fileBase64?.substring(0, 100)} ${message.fileType} ${message.extraText}")
return WeworkOperationImpl.pushFile(
message,
message.titleList,
Expand All @@ -373,7 +373,7 @@ object WeworkController {
*/
@RequestMapping
fun pushLink(message: WeworkMessageBean): Boolean {
LogUtils.d("pushLink(): ${message.titleList} ${message.objectName} ${message.receivedContent} ${message.originalContent} ${message.fileUrl} ${message.extraText}")
LogUtils.d("REQUEST pushLink(): ${message.titleList} ${message.objectName} ${message.receivedContent} ${message.originalContent} ${message.fileUrl} ${message.extraText}")
return WeworkOperationImpl.pushLink(
message,
message.titleList,
Expand All @@ -395,7 +395,7 @@ object WeworkController {
*/
@RequestMapping
fun recallMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("recallMessage(): ${message.titleList} ${message.originalContent} ${message.textType}")
LogUtils.d("REQUEST recallMessage(): ${message.titleList} ${message.originalContent} ${message.textType}")
return WeworkOperationImpl.recallMessage(
message,
message.titleList,
Expand All @@ -415,7 +415,7 @@ object WeworkController {
*/
@RequestMapping
fun relayMultiMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("relayMultiMessage(): ${message.titleList} ${message.messageList} ${message.nameList} ${message.extraText}")
LogUtils.d("REQUEST relayMultiMessage(): ${message.titleList} ${message.messageList} ${message.nameList} ${message.extraText}")
return WeworkOperationImpl.relayMultiMessage(
message,
message.titleList,
Expand All @@ -436,7 +436,7 @@ object WeworkController {
*/
@RequestMapping
fun relayMergeMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("relayMergeMessage(): ${message.titleList} ${message.messageList} ${message.nameList} ${message.extraText}")
LogUtils.d("REQUEST relayMergeMessage(): ${message.titleList} ${message.messageList} ${message.nameList} ${message.extraText}")
return WeworkOperationImpl.relayMergeMessage(
message,
message.titleList,
Expand All @@ -455,7 +455,7 @@ object WeworkController {
*/
@RequestMapping
fun sendMultiMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("sendMultiMessage(): ${message.weworkMessageList} ${message.nameList} ${message.extraText}")
LogUtils.d("REQUEST sendMultiMessage(): ${message.weworkMessageList} ${message.nameList} ${message.extraText}")
return WeworkOperationImpl.sendMultiMessage(
message,
message.weworkMessageList,
Expand All @@ -473,7 +473,7 @@ object WeworkController {
*/
@RequestMapping
fun sendMergeMessage(message: WeworkMessageBean): Boolean {
LogUtils.d("sendMergeMessage(): ${message.weworkMessageList} ${message.nameList} ${message.extraText}")
LogUtils.d("REQUEST sendMergeMessage(): ${message.weworkMessageList} ${message.nameList} ${message.extraText}")
return WeworkOperationImpl.sendMergeMessage(
message,
message.weworkMessageList,
Expand All @@ -489,7 +489,7 @@ object WeworkController {
*/
@RequestMapping
fun addFriendByPhone(message: WeworkMessageBean): Boolean {
LogUtils.d("addFriendByPhone(): ${message.friend}")
LogUtils.d("REQUEST addFriendByPhone(): ${message.friend}")
return WeworkOperationImpl.addFriendByPhone(message, message.friend)
}

Expand All @@ -503,7 +503,7 @@ object WeworkController {
*/
@RequestMapping
fun showGroupInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("showGroupInfo(): ${message.titleList} ${message.receivedName} ${message.originalContent} ${message.textType}")
LogUtils.d("REQUEST showGroupInfo(): ${message.titleList} ${message.receivedName} ${message.originalContent} ${message.textType}")
return WeworkOperationImpl.showGroupInfo(
message,
message.titleList,
Expand All @@ -521,7 +521,7 @@ object WeworkController {
*/
@RequestMapping
fun scanQrCode(message: WeworkMessageBean): Boolean {
LogUtils.d("scanQrCode(): ${message.fileUrl} ${message.fileBase64?.substring(0, 100)}")
LogUtils.d("REQUEST scanQrCode(): ${message.fileUrl} ${message.fileBase64?.substring(0, 100)}")
return WeworkOperationImpl.scanQrCode(
message,
message.fileUrl,
Expand All @@ -536,7 +536,7 @@ object WeworkController {
*/
@RequestMapping
fun deleteContact(message: WeworkMessageBean): Boolean {
LogUtils.d("deleteContact(): ${message.friend}")
LogUtils.d("REQUEST deleteContact(): ${message.friend}")
return WeworkOperationImpl.deleteContact(message, message.friend)
}

Expand All @@ -547,7 +547,7 @@ object WeworkController {
*/
@RequestMapping
fun getGroupInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("getGroupInfo(): ${message.selectList}")
LogUtils.d("REQUEST getGroupInfo(): ${message.selectList}")
return WeworkGetImpl.getGroupInfo(message, message.selectList)
}

Expand All @@ -558,7 +558,7 @@ object WeworkController {
*/
@RequestMapping
fun getFriendInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("getFriendInfo(): ${message.selectList}")
LogUtils.d("REQUEST getFriendInfo(): ${message.selectList}")
return WeworkGetImpl.getFriendInfo(message, message.selectList)
}

Expand All @@ -568,7 +568,7 @@ object WeworkController {
*/
@RequestMapping
fun getAllFriendInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("getAllFriendInfo():")
LogUtils.d("REQUEST getAllFriendInfo():")
return WeworkGetImpl.getAllFriendInfo(message)
}

Expand All @@ -578,7 +578,7 @@ object WeworkController {
*/
@RequestMapping
fun getAllGroupInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("getAllGroupInfo():")
LogUtils.d("REQUEST getAllGroupInfo():")
return WeworkGetImpl.getAllGroupInfo(message)
}

Expand All @@ -589,7 +589,7 @@ object WeworkController {
*/
@RequestMapping
fun getLocalFile(message: WeworkMessageBean): Boolean {
LogUtils.d("getLocalFile(): ${message.fileUrl}")
LogUtils.d("REQUEST getLocalFile(): ${message.fileUrl}")
return WeworkGetImpl.getLocalFile(message, message.fileUrl)
}

Expand All @@ -599,7 +599,7 @@ object WeworkController {
*/
@RequestMapping
fun getMyInfo(message: WeworkMessageBean): Boolean {
LogUtils.d("getMyInfo():")
LogUtils.d("REQUEST getMyInfo():")
return WeworkGetImpl.getMyInfo(message)
}

Expand All @@ -609,7 +609,7 @@ object WeworkController {
*/
@RequestMapping
fun getRecentList(message: WeworkMessageBean): Boolean {
LogUtils.d("getRecentList():")
LogUtils.d("REQUEST getRecentList():")
return WeworkGetImpl.getRecentList(message)
}

Expand All @@ -619,7 +619,7 @@ object WeworkController {
*/
@RequestMapping
fun getCorpList(message: WeworkMessageBean): Boolean {
LogUtils.d("getCorpList():")
LogUtils.d("REQUEST getCorpList():")
return WeworkGetImpl.getCorpList(message)
}

Expand Down

0 comments on commit e68ee02

Please sign in to comment.