token.go 305 B

12345678910111213141516
  1. package model
  2. // TokenInfo represents pay token.
  3. type TokenInfo struct {
  4. Token string
  5. OrderNo string
  6. Status int8
  7. Mid int64
  8. }
  9. // CopyFromPayParam copies fields from pay param.
  10. func (t *TokenInfo) CopyFromPayParam(pp *PayParam) {
  11. t.Mid = pp.Mid
  12. t.Status = pp.Status
  13. t.OrderNo = pp.OrderNo
  14. }