ocket8888 commented on a change in pull request #4014: Rewrite federation user 
GET/POST/DELETE
URL: https://github.com/apache/trafficcontrol/pull/4014#discussion_r338720445
 
 

 ##########
 File path: lib/go-tc/federation.go
 ##########
 @@ -103,3 +103,21 @@ type FederationDSPost struct {
 func (f *FederationDSPost) Validate(tx *sql.Tx) error {
        return nil
 }
+
+type FederationUser struct {
+       Company  *string `json:"dsIds" db:"company"`
+       Email    *string `json:"email" db:"email"`
+       FullName *string `json:"fullName" db:"full_name"`
+       ID       *int    `json:"id" db:"id"`
+       Role     *string `json:"role" db:"role_name"`
+       Username *string `json:"username" db:"username"`
+}
+
+type FederationUserPost struct {
+       IDs     []int `json:"userIds"`
+       Replace *bool `json:"replace"`
+}
+
+func (f *FederationUserPost) Validate(tx *sql.Tx) error {
 
 Review comment:
   GoDocs on these three entities?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to