jagan-parthiban commented on code in PR #7408:
URL: https://github.com/apache/trafficcontrol/pull/7408#discussion_r1163648920


##########
lib/go-tc/service_category.go:
##########
@@ -37,3 +39,25 @@ type ServiceCategory struct {
        LastUpdated TimeNoMod `json:"lastUpdated" db:"last_updated"`
        Name        string    `json:"name" db:"name"`
 }
+
+// ServiceCategoriesResponseV5 is a list of Service Categories as a response.
+// Uses ServiceCategoryV5 struct for RFC3339 Format
+type ServiceCategoriesResponseV5 struct {
+       Response []ServiceCategoryV5 `json:"response"`
+       Alerts
+}
+
+// ServiceCategoryResponseV5 is a single Service Category response for Update 
and Create to
+// depict what changed.
+// Uses ServiceCategoryV5 struct for RFC3339 Format
+type ServiceCategoryResponseV5 struct {
+       Response ServiceCategoryV5 `json:"response"`
+       Alerts
+}
+
+// ServiceCategoryV5 holds the name, id and associated tenant that comprise a 
service category.
+// Previous versions hold Depreciated TimeNodMod Format. This version is 
updated to RFC3339 Time Format.
+type ServiceCategoryV5 struct {

Review Comment:
   Incorporated the changes. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to