-
Couldn't load subscription status.
- Fork 4
feature: java sdk support embed link create、get and delete #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BronLau
wants to merge
2
commits into
master
Choose a base branch
from
feature-embed-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
24 changes: 24 additions & 0 deletions
24
client/src/main/java/cn/vika/client/api/model/CreateEmbedLinkRequest.java
This file contains hidden or 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,24 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public class CreateEmbedLinkRequest { | ||
|
|
||
| private EmbedLinkPayload payload; | ||
|
|
||
| private EmbedLinkThemeEnum theme; | ||
|
|
||
| public EmbedLinkPayload getPayload() { | ||
| return payload; | ||
| } | ||
|
|
||
| public void setPayload(EmbedLinkPayload payload) { | ||
| this.payload = payload; | ||
| } | ||
|
|
||
| public EmbedLinkThemeEnum getTheme() { | ||
| return theme; | ||
| } | ||
|
|
||
| public void setTheme(EmbedLinkThemeEnum theme) { | ||
| this.theme = theme; | ||
| } | ||
| } |
44 changes: 44 additions & 0 deletions
44
client/src/main/java/cn/vika/client/api/model/CreateEmbedLinkResponse.java
This file contains hidden or 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,44 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public class CreateEmbedLinkResponse { | ||
|
|
||
| private String linkId; | ||
|
|
||
| private String url; | ||
|
|
||
| private EmbedLinkPayload payload; | ||
|
|
||
| private EmbedLinkThemeEnum theme; | ||
|
|
||
| public String getLinkId() { | ||
| return linkId; | ||
| } | ||
|
|
||
| public void setLinkId(String linkId) { | ||
| this.linkId = linkId; | ||
| } | ||
|
|
||
| public String getUrl() { | ||
| return url; | ||
| } | ||
|
|
||
| public void setUrl(String url) { | ||
| this.url = url; | ||
| } | ||
|
|
||
| public EmbedLinkPayload getPayload() { | ||
| return payload; | ||
| } | ||
|
|
||
| public void setPayload(EmbedLinkPayload payload) { | ||
| this.payload = payload; | ||
| } | ||
|
|
||
| public EmbedLinkThemeEnum getTheme() { | ||
| return theme; | ||
| } | ||
|
|
||
| public void setTheme(EmbedLinkThemeEnum theme) { | ||
| this.theme = theme; | ||
| } | ||
| } |
44 changes: 44 additions & 0 deletions
44
client/src/main/java/cn/vika/client/api/model/EmbedLinkPayload.java
This file contains hidden or 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,44 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public class EmbedLinkPayload { | ||
|
|
||
| private EmbedLinkPayloadSideBar primarySideBar; | ||
|
|
||
| private EmbedLinkPayloadViewControl viewControl; | ||
|
|
||
| private boolean bannerLogo; | ||
|
|
||
| private EmbedLinkPermissionEnum permissionType; | ||
|
|
||
| public EmbedLinkPayloadSideBar getPrimarySideBar() { | ||
| return primarySideBar; | ||
| } | ||
|
|
||
| public void setPrimarySideBar(EmbedLinkPayloadSideBar primarySideBar) { | ||
| this.primarySideBar = primarySideBar; | ||
| } | ||
|
|
||
| public EmbedLinkPayloadViewControl getViewControl() { | ||
| return viewControl; | ||
| } | ||
|
|
||
| public void setViewControl(EmbedLinkPayloadViewControl viewControl) { | ||
| this.viewControl = viewControl; | ||
| } | ||
|
|
||
| public boolean isBannerLogo() { | ||
| return bannerLogo; | ||
| } | ||
|
|
||
| public void setBannerLogo(boolean bannerLogo) { | ||
| this.bannerLogo = bannerLogo; | ||
| } | ||
|
|
||
| public EmbedLinkPermissionEnum getPermissionType() { | ||
| return permissionType; | ||
| } | ||
|
|
||
| public void setPermissionType(EmbedLinkPermissionEnum permissionType) { | ||
| this.permissionType = permissionType; | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
client/src/main/java/cn/vika/client/api/model/EmbedLinkPayloadSideBar.java
This file contains hidden or 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,14 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public class EmbedLinkPayloadSideBar { | ||
|
|
||
| private boolean collapsed; | ||
|
|
||
| public boolean isCollapsed() { | ||
| return collapsed; | ||
| } | ||
|
|
||
| public void setCollapsed(boolean collapsed) { | ||
| this.collapsed = collapsed; | ||
| } | ||
| } |
44 changes: 44 additions & 0 deletions
44
client/src/main/java/cn/vika/client/api/model/EmbedLinkPayloadViewControl.java
This file contains hidden or 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,44 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public class EmbedLinkPayloadViewControl { | ||
|
|
||
| private String viewId; | ||
|
|
||
| private boolean tabBar; | ||
|
|
||
| private EmbedLinkPayloadViewToolBar toolBar; | ||
|
|
||
| private boolean collapsed; | ||
|
|
||
| public String getViewId() { | ||
| return viewId; | ||
| } | ||
|
|
||
| public void setViewId(String viewId) { | ||
| this.viewId = viewId; | ||
| } | ||
|
|
||
| public boolean isTabBar() { | ||
| return tabBar; | ||
| } | ||
|
|
||
| public void setTabBar(boolean tabBar) { | ||
| this.tabBar = tabBar; | ||
| } | ||
|
|
||
| public EmbedLinkPayloadViewToolBar getToolBar() { | ||
| return toolBar; | ||
| } | ||
|
|
||
| public void setToolBar(EmbedLinkPayloadViewToolBar toolBar) { | ||
| this.toolBar = toolBar; | ||
| } | ||
|
|
||
| public boolean isCollapsed() { | ||
| return collapsed; | ||
| } | ||
|
|
||
| public void setCollapsed(boolean collapsed) { | ||
| this.collapsed = collapsed; | ||
| } | ||
| } |
74 changes: 74 additions & 0 deletions
74
client/src/main/java/cn/vika/client/api/model/EmbedLinkPayloadViewToolBar.java
This file contains hidden or 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,74 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public class EmbedLinkPayloadViewToolBar { | ||
|
|
||
| private boolean basicTools; | ||
|
|
||
| private boolean shareBtn; | ||
|
|
||
| private boolean widgetBtn; | ||
|
|
||
| private boolean apiBtn; | ||
|
|
||
| private boolean formBtn; | ||
|
|
||
| private boolean historyBtn; | ||
|
|
||
| private boolean robotBtn; | ||
|
|
||
| public boolean isBasicTools() { | ||
| return basicTools; | ||
| } | ||
|
|
||
| public void setBasicTools(boolean basicTools) { | ||
| this.basicTools = basicTools; | ||
| } | ||
|
|
||
| public boolean isShareBtn() { | ||
| return shareBtn; | ||
| } | ||
|
|
||
| public void setShareBtn(boolean shareBtn) { | ||
| this.shareBtn = shareBtn; | ||
| } | ||
|
|
||
| public boolean isWidgetBtn() { | ||
| return widgetBtn; | ||
| } | ||
|
|
||
| public void setWidgetBtn(boolean widgetBtn) { | ||
| this.widgetBtn = widgetBtn; | ||
| } | ||
|
|
||
| public boolean isApiBtn() { | ||
| return apiBtn; | ||
| } | ||
|
|
||
| public void setApiBtn(boolean apiBtn) { | ||
| this.apiBtn = apiBtn; | ||
| } | ||
|
|
||
| public boolean isFormBtn() { | ||
| return formBtn; | ||
| } | ||
|
|
||
| public void setFormBtn(boolean formBtn) { | ||
| this.formBtn = formBtn; | ||
| } | ||
|
|
||
| public boolean isHistoryBtn() { | ||
| return historyBtn; | ||
| } | ||
|
|
||
| public void setHistoryBtn(boolean historyBtn) { | ||
| this.historyBtn = historyBtn; | ||
| } | ||
|
|
||
| public boolean isRobotBtn() { | ||
| return robotBtn; | ||
| } | ||
|
|
||
| public void setRobotBtn(boolean robotBtn) { | ||
| this.robotBtn = robotBtn; | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
client/src/main/java/cn/vika/client/api/model/EmbedLinkPermissionEnum.java
This file contains hidden or 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,24 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public enum EmbedLinkPermissionEnum { | ||
| readOnly, | ||
| publicEdit, | ||
| privateEdit; | ||
|
|
||
|
|
||
| // READ_ONLY("readOnly"), | ||
| // | ||
| // PUBLIC_EDIT("publicEdit"), | ||
| // | ||
| // PRIVATE_EDIT("privateEdit"); | ||
| // | ||
| // private final String permissionType; | ||
| // | ||
| // EmbedLinkPermissionEnum(String permissionType){ | ||
| // this.permissionType = permissionType; | ||
| // } | ||
| // | ||
| // public String getPermissionType(){ | ||
| // return permissionType; | ||
| // } | ||
| } | ||
7 changes: 7 additions & 0 deletions
7
client/src/main/java/cn/vika/client/api/model/EmbedLinkThemeEnum.java
This file contains hidden or 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,7 @@ | ||
| package cn.vika.client.api.model; | ||
|
|
||
| public enum EmbedLinkThemeEnum { | ||
| light, | ||
|
|
||
| dark; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be delete it.