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


##########
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"`
 }
+
+// ServiceCategoriesResponseV50 is a list of Service Categories as a response.
+type ServiceCategoriesResponseV50 struct {
+       Response []ServiceCategoryV50 `json:"response"`
+       Alerts
+}
+
+// ServiceCategoryResponseV50 is a single Service Category response for Update 
and Create to
+type ServiceCategoryResponseV50 struct {
+       Response ServiceCategoryV50 `json:"response"`
+       Alerts
+}
+
+// ServiceCategoryV50 holds the name and last updated time stamp.
+type ServiceCategoryV50 struct {
+       LastUpdated time.Time `json:"lastUpdated" db:"last_updated"`
+       Name        string    `json:"name" db:"name"`
+}
+
+type ServiceCategoriesResponseV5 = ServiceCategoriesResponseV50
+type ServiceCategoryResponseV5 = ServiceCategoryResponseV50
+type ServiceCategoryV5 = ServiceCategoryV50

Review Comment:
   Added GoDoc comments. 



-- 
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