diff --git a/model/qrcode.go b/model/qrcode.go index 983497c..8a957de 100644 --- a/model/qrcode.go +++ b/model/qrcode.go @@ -12,12 +12,12 @@ const ( ) type QRCode struct { - id string + Id string State QRCodeState LoginId string Ticket string } func NewQRCode(id string) *QRCode { - return &QRCode{id: id, State: WaitScan} + return &QRCode{Id: id, State: WaitScan} }