Skip to content

Commit

Permalink
feat: support more api
Browse files Browse the repository at this point in the history
  • Loading branch information
RTAkland committed Oct 3, 2024
1 parent 43235de commit 987931a
Show file tree
Hide file tree
Showing 46 changed files with 154 additions and 51 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin.code.style=official

libVersion=1.12.5
libVersion=1.12.6
32 changes: 32 additions & 0 deletions src/main/kotlin/cn/rtast/rob/entity/lagrange/ForwardMessage.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/3
*/


package cn.rtast.rob.entity.lagrange

import cn.rtast.rob.entity.ArrayMessage
import cn.rtast.rob.enums.ArrayMessageType
import com.google.gson.annotations.SerializedName

data class ForwardMessage(
val data: Data
) {
data class Data(
val message: List<ForwardArrayMessage>
)

data class ForwardArrayMessage(
@SerializedName("user_id")
val userId: Long,
val nickname: String,
val content: List<Content>
)

data class Content(
val type: ArrayMessageType,
val data: ArrayMessage.Data
)
}
16 changes: 16 additions & 0 deletions src/main/kotlin/cn/rtast/rob/entity/lagrange/GetCookies.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/3
*/


package cn.rtast.rob.entity.lagrange

data class GetCookies(
val data: Data
) {
data class Data(
val cookies: String
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/3
*/


package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType

internal data class GetCookiesOut(
val action: String = "get_cookies",
val echo: MessageEchoType = MessageEchoType.GetCookies,
val params: Params
) {
data class Params(
val domain: String,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.get

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import cn.rtast.rob.enums.internal.MessageEchoType
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import cn.rtast.rob.enums.internal.MessageEchoType
import cn.rtast.rob.segment.Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out.lagrange
package cn.rtast.rob.entity.out.lagrange.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import cn.rtast.rob.entity.ArrayMessage
import cn.rtast.rob.segment.BaseSegment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

internal data class SetFriendRequestOut(
val action: String = "set_friend_add_request",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


package cn.rtast.rob.entity.out
package cn.rtast.rob.entity.out.set

import com.google.gson.annotations.SerializedName

Expand Down
Loading

0 comments on commit 987931a

Please sign in to comment.