ban_logs.go 469 B

12345678910111213141516171819202122232425262728
  1. package forms
  2. import "strings"
  3. type UserAccountBanListReq struct {
  4. ListReq
  5. ID int64 `json:"id" form:"id"`
  6. OpenId string `json:"openId" form:"openId"`
  7. AccId int64 `json:"accId" form:"accId"`
  8. }
  9. func (req *UserAccountBanListReq) Check() error {
  10. if req.AccId > 0 {
  11. req.ID = 0
  12. req.OpenId = ""
  13. }
  14. if req.OpenId != "" {
  15. req.ID = 0
  16. }
  17. req.OpenId = strings.ReplaceAll(req.OpenId, "@wx", "")
  18. return nil
  19. }
  20. type UserAccountBanListRes struct {
  21. ListRes
  22. }