-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from Alonza0314/refactor/backend-subscriber-c…
…reate Refactor/backend subscriber create
- Loading branch information
Showing
30 changed files
with
3,619 additions
and
161 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,16 @@ | ||
package WebUI | ||
|
||
import "github.com/free5gc/openapi/models" | ||
|
||
type Profile struct { | ||
ProfileName string `json:"profileName"` | ||
TenantId string `json:"tenantId"` | ||
AccessAndMobilitySubscriptionData models.AccessAndMobilitySubscriptionData `json:"AccessAndMobilitySubscriptionData"` | ||
SessionManagementSubscriptionData []models.SessionManagementSubscriptionData `json:"SessionManagementSubscriptionData"` | ||
SmfSelectionSubscriptionData models.SmfSelectionSubscriptionData `json:"SmfSelectionSubscriptionData"` | ||
AmPolicyData models.AmPolicyData `json:"AmPolicyData"` | ||
SmPolicyData models.SmPolicyData `json:"SmPolicyData"` | ||
FlowRules []FlowRule `json:"FlowRules"` | ||
QosFlows []QosFlow `json:"QosFlows"` | ||
ChargingDatas []ChargingData | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 @@ | ||
#! /bin/bash | ||
|
||
# prerequisites | ||
# - docker | ||
|
||
# use Docker to run OpenAPI Generator | ||
docker run --rm -v $PWD:/local openapitools/openapi-generator-cli generate -i /local/webconsole.yaml -g typescript-axios -o /local/src/api | ||
|
||
# replace Time with Date in the file | ||
sed 's/: Time/: Date/g' /local/src/api/api.ts > /local/src/api/api.ts.mod | ||
mv /local/src/api/api.ts.mod /local/src/api/api.ts # rename the replaced file to the original file |
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
Oops, something went wrong.