LogoutRequest.go 432 B

123456789101112131415161718192021222324
  1. package request
  2. import (
  3. "bytes"
  4. "encoding/xml"
  5. )
  6. type LogoutRequest struct {
  7. XMLName xml.Name `xml:"req" json:"-"`
  8. Body string `xml:"body"`
  9. }
  10. func NewLogoutRequest() *LogoutRequest {
  11. return &LogoutRequest{}
  12. }
  13. func (this *LogoutRequest) Url() string {
  14. return "/public/security/logout"
  15. }
  16. func (this *LogoutRequest) GetRequestData() *bytes.Buffer {
  17. data, _ := xml.Marshal(this)
  18. return bytes.NewBuffer(data)
  19. }