Skip to content

Commit

Permalink
fix: ApplicationVersion move chat
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Oct 30, 2024
1 parent 071c186 commit d83264f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions third/third.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,3 @@ func (x *CompleteFormDataReq) Check() error {
}
return nil
}

func (x *LatestApplicationVersionReq) Check() error {
if x.Platform == "" {
return errors.New("platform is empty")
}
return nil
}

func (x *PageApplicationVersionReq) Check() error {
if x.Pagination == nil {
return errors.New("pagination is empty")
}
if x.Pagination.PageNumber < 1 {
return errors.New("pageNumber is invalid")
}
if x.Pagination.ShowNumber < 1 {
return errors.New("showNumber is invalid")
}
return nil
}

0 comments on commit d83264f

Please sign in to comment.