-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
983 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
[ | ||
{ | ||
"url": "http://43.135.22.107:8080/share/usershare/create?address=0xabc", | ||
"method": "POST", | ||
"body": { | ||
"theme": "主题", | ||
"date": "分享日期,如2023-01-01", | ||
"time": "分享时间,如8:00", | ||
"language": "分享语言,0-中文,1英文", | ||
"presenter": "分享人昵称", | ||
"org": "所属组织", | ||
"twitter": "分享人推特", | ||
"sharingDoc": "分享链接", | ||
"label": "标签类别" | ||
}, | ||
"response": | ||
{ | ||
"code": "200", | ||
"msg": "success", | ||
"data": 111 | ||
} | ||
}, | ||
{ | ||
"url": "http:/43.135.22.107:8080/share/usershare/update?address=0xabc", | ||
"method": "POST", | ||
"body": { | ||
"id":"分享id,如111", | ||
"theme": "主题", | ||
"date": "分享日期,如2023-01-01", | ||
"time": "分享时间,如8:00", | ||
"language": "分享语言,0-中文,1英文", | ||
"presenter": "分享人昵称", | ||
"org": "所属组织", | ||
"twitter": "分享人推特", | ||
"sharingDoc": "分享链接", | ||
"label": "标签类别" | ||
}, | ||
"response": | ||
{ | ||
"code": "200", | ||
"msg": "success", | ||
"data": null | ||
} | ||
}, | ||
{ | ||
"url": "http://43.135.22.107:8080/share/usershare/delete?shareId=111&address=0xabc", | ||
"method": "POST", | ||
"response": | ||
{ | ||
"code": "200", | ||
"msg": "success", | ||
"data": null | ||
} | ||
}, | ||
{ | ||
"url": "http://43.135.22.107:8080/share/usershare/all?pageNo=1&pageSize=10", | ||
"method": "GET", | ||
"response": | ||
{ | ||
"code": "200", | ||
"msg": "success", | ||
"data": { | ||
"data": [ | ||
{ | ||
"id": "分享id", | ||
"theme": "主题", | ||
"date": "分享日期,如2023-01-01", | ||
"time": "分享时间,如8:00", | ||
"language": "分享语言,0-中文,1英文", | ||
"presenter": "分享人昵称", | ||
"org": "所属组织", | ||
"twitter": "分享人推特", | ||
"sharingDoc": "分享链接", | ||
"label": "标签类别", | ||
"locked": "锁定状态", | ||
"meetingType": "会议类别", | ||
"meetingId": "会议编号", | ||
"meetingLink": "会议链接" | ||
} | ||
], | ||
"pagination": { | ||
"totalCount": 0, | ||
"totalPages": 0, | ||
"currentPage": 1, | ||
"currentPageSize": 0, | ||
"hasNext": false | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "http://43.135.22.107:8080/share/usershare/byUser?memberId=1?pageNo=1&pageSize=10", | ||
"method": "GET", | ||
"response": | ||
{ | ||
"code": "200", | ||
"msg": "success", | ||
"data": { | ||
"data": [ | ||
{ | ||
"id": "分享id", | ||
"theme": "主题", | ||
"date": "分享日期,如2023-01-01", | ||
"time": "分享时间,如8:00", | ||
"language": "分享语言,0-中文,1英文", | ||
"presenter": "分享人昵称", | ||
"org": "所属组织", | ||
"twitter": "分享人推特", | ||
"sharingDoc": "分享链接", | ||
"label": "标签类别", | ||
"locked": "锁定状态", | ||
"meetingType": "会议类别", | ||
"meetingId": "会议编号", | ||
"meetingLink": "会议链接" | ||
} | ||
], | ||
"pagination": { | ||
"totalCount": 0, | ||
"totalPages": 0, | ||
"currentPage": 1, | ||
"currentPageSize": 0, | ||
"hasNext": false | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "http://43.135.22.107:8080/share/usershare/queryByShareId?shareId=111", | ||
"method": "GET", | ||
"response": | ||
{ | ||
"code": "200", | ||
"msg": "success", | ||
"data": { | ||
"id": "分享id", | ||
"theme": "主题", | ||
"date": "分享日期,如2023-01-01", | ||
"time": "分享时间,如8:00", | ||
"language": "分享语言,0-中文,1英文", | ||
"presenter": "分享人昵称", | ||
"org": "所属组织", | ||
"twitter": "分享人推特", | ||
"sharingDoc": "分享链接", | ||
"label": "标签类别", | ||
"locked": "锁定状态", | ||
"meetingType": "会议类别", | ||
"meetingId": "会议编号", | ||
"meetingLink": "会议链接" | ||
} | ||
} | ||
} | ||
] |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/dl/officialsite/common/base/Pagination.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
package com.dl.officialsite.common.base; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Pagination { | ||
|
||
/** | ||
* 总数据条目 | ||
*/ | ||
private int totalCount; | ||
|
||
/** | ||
* 总共页数 | ||
*/ | ||
private int totalPages; | ||
|
||
/** | ||
* 当前页码 | ||
*/ | ||
private int currentPage; | ||
|
||
/** | ||
* 当前页面包含条目数 | ||
*/ | ||
private int currentPageSize; | ||
|
||
/** | ||
* 是否还有下一页 | ||
*/ | ||
private boolean hasNext; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/com/dl/officialsite/sharing/constant/SharingLanguageEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.dl.officialsite.sharing.constant; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum SharingLanguageEnum { | ||
|
||
CHINESE(0), | ||
|
||
ENGLISH(1), | ||
|
||
FRENCH(2), | ||
|
||
JAPANESE(3); | ||
|
||
private int code; | ||
|
||
SharingLanguageEnum(int code){ | ||
this.code = code; | ||
} | ||
|
||
public static SharingLanguageEnum codeOf(int languageCode) { | ||
for(SharingLanguageEnum language: SharingLanguageEnum.values()){ | ||
if(language.code == languageCode){ | ||
return language; | ||
} | ||
} | ||
throw new IllegalArgumentException("languageCode "+languageCode); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/dl/officialsite/sharing/constant/SharingLockStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.dl.officialsite.sharing.constant; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum SharingLockStatus { | ||
|
||
UNLOCKED(0), | ||
|
||
LOCKED(1); | ||
|
||
private int code; | ||
|
||
SharingLockStatus(int code){ | ||
this.code = code; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/com/dl/officialsite/sharing/constant/SharingMeetingType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.dl.officialsite.sharing.constant; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum SharingMeetingType { | ||
|
||
TENCENT(0), | ||
|
||
GOOGLE(1), | ||
|
||
ZOOM(2), | ||
|
||
TELEGRAM(3), | ||
|
||
DC(4); | ||
|
||
private int code; | ||
|
||
SharingMeetingType(int code){ | ||
this.code = code; | ||
} | ||
|
||
public static SharingMeetingType codeOf(int meetingType) { | ||
for(SharingMeetingType m: SharingMeetingType.values()){ | ||
if(m.code == meetingType){ | ||
return m; | ||
} | ||
} | ||
throw new IllegalArgumentException("meetingType "+meetingType); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/dl/officialsite/sharing/constant/SharingPostType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.dl.officialsite.sharing.constant; | ||
|
||
public enum SharingPostType { | ||
|
||
CLASSIC(0); | ||
|
||
private int code; | ||
|
||
SharingPostType(int code){ | ||
this.code = code; | ||
} | ||
|
||
public static SharingPostType codeOf(int code){ | ||
for(SharingPostType postType: SharingPostType.values()){ | ||
if(postType.code == code){ | ||
return postType; | ||
} | ||
} | ||
throw new IllegalArgumentException("SharingPostType "+code); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.