generated from Real-Dev-Squad/website-template
-
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.
* refactor feature flag and user mapping response & request * fix typo in create feature flag response message * add comment in getUserFeatureFlag * add comment in updateUserFeatureFlag --------- Co-authored-by: Vikhyat Bhatnagar <[email protected]>
- Loading branch information
1 parent
3fde229
commit 9e29421
Showing
7 changed files
with
51 additions
and
37 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,43 @@ | ||
package utils | ||
|
||
type UpdateFeatureFlagRequest struct { | ||
Status string `json:"Status" validate:"required"` | ||
UserId string `json:"UserId" validate:"required"` | ||
Status string `json:"status" validate:"required"` | ||
UserId string `json:"userId" validate:"required"` | ||
} | ||
|
||
type CreateFeatureFlagRequest struct { | ||
FlagName string `json:"Name" validate:"required"` | ||
Description string `json:"Description" validate:"required"` | ||
UserId string `json:"UserId" validate:"required"` | ||
FlagName string `json:"name" validate:"required"` | ||
Description string `json:"description" validate:"required"` | ||
UserId string `json:"userId" validate:"required"` | ||
} | ||
|
||
type FeatureFlagResponse struct { | ||
Id string `json:"Id"` | ||
Name string `json:"Name"` | ||
Description string `json:"Description"` | ||
Status string `json:"Status"` | ||
Id string `json:"id"` | ||
Name string `json:"name"` | ||
Description string `json:"description"` | ||
Status string `json:"status"` | ||
CreatedAt int64 `json:"createdAt"` | ||
CreatedBy string `json:"createdBy"` | ||
UpdatedAt int64 `json:"updatedAt"` | ||
UpdatedBy string `json:"updatedBy"` | ||
} | ||
|
||
type CreateFeatureFlagUserMappingRequest struct { | ||
Status string `json:"status" validate:"required"` | ||
UserId string `json:"userId" validate:"required"` | ||
} | ||
|
||
type UpdateFeatureFlagUserMappingRequest struct { | ||
Status string `json:"status" validate:"required"` | ||
UserId string `json:"userId" validate:"required"` | ||
} | ||
|
||
type FeatureFlagUserMappingResponse struct { | ||
UserId string `json:"userId"` | ||
FlagId string `json:"flagId"` | ||
Status string `json:"status"` | ||
CreatedAt int64 `json:"createdAt"` | ||
CreatedBy string `json:"createdBy"` | ||
UpdatedAt int64 `json:"updatedAt"` | ||
UpdatedBy string `json:"updatedBy"` | ||
} |