File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
baidu-unit/src/main/kotlin/xyz/cssxsh/baidu/unit/data Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
package xyz.cssxsh.baidu.unit.data
2
2
3
3
import kotlinx.serialization.*
4
+ import kotlinx.serialization.json.*
4
5
import java.time.LocalDateTime
5
6
6
7
/* *
@@ -25,19 +26,19 @@ import java.time.LocalDateTime
25
26
public data class SkillInfo (
26
27
@SerialName(" skillId" )
27
28
val id : Long ,
28
- @SerialName (" skillName" )
29
+ @JsonNames (" skillName" , " botName " )
29
30
val name : String ,
30
- @SerialName (" skillDesc" )
31
+ @JsonNames (" skillDesc" , " botDesc " )
31
32
val description : String ,
32
- @SerialName (" skillCategory" )
33
+ @JsonNames (" skillCategory" , " botCategory " )
33
34
val category : SkillCategory ,
34
- @SerialName (" skillType" )
35
+ @JsonNames (" skillType" , " botType " )
35
36
val type : SkillType ,
36
37
@SerialName(" skillObtainedBy" )
37
38
val obtainedBy : SkillObtainedBy ,
38
39
@SerialName(" skillStatus" )
39
40
val status : SkillStatus ,
40
- @SerialName (" skillVersion" )
41
+ @JsonNames (" skillVersion" , " botVersion " )
41
42
val version : String ,
42
43
@SerialName(" copyStatus" )
43
44
val copy : SkillCopyStatus = SkillCopyStatus .none,
You can’t perform that action at this time.
0 commit comments