fix bug
This commit is contained in:
@@ -63,8 +63,8 @@ func (p *Code) Value() (driver.Value, error) {
|
||||
}
|
||||
|
||||
type AudioCallReq struct {
|
||||
UserID string `thrift:"user_id,1" json:"user_id" query:"user_id"`
|
||||
TargetUserID string `thrift:"target_user_id,2" json:"target_user_id" query:"target_user_id"`
|
||||
UserID string `thrift:"user_id,1" form:"user_id" json:"user_id"`
|
||||
TargetUserID string `thrift:"target_user_id,2" form:"target_user_id" json:"target_user_id"`
|
||||
}
|
||||
|
||||
func NewAudioCallReq() *AudioCallReq {
|
||||
@@ -247,11 +247,8 @@ func (p *AudioCallReq) String() string {
|
||||
}
|
||||
|
||||
type AudioCallResp struct {
|
||||
Code Code `thrift:"code,1" form:"code" json:"code" query:"code"`
|
||||
Msg string `thrift:"msg,2" form:"msg" json:"msg" query:"msg"`
|
||||
Room string `thrift:"room,3" form:"room" json:"room" query:"room"`
|
||||
Auth string `thrift:"auth,4" form:"auth" json:"auth" query:"auth"`
|
||||
LivekitServer string `thrift:"livekit_server,5" form:"livekit_server" json:"livekit_server" query:"livekit_server"`
|
||||
Code Code `thrift:"code,1" form:"code" json:"code" query:"code"`
|
||||
Msg string `thrift:"msg,2" form:"msg" json:"msg" query:"msg"`
|
||||
}
|
||||
|
||||
func NewAudioCallResp() *AudioCallResp {
|
||||
@@ -269,24 +266,9 @@ func (p *AudioCallResp) GetMsg() (v string) {
|
||||
return p.Msg
|
||||
}
|
||||
|
||||
func (p *AudioCallResp) GetRoom() (v string) {
|
||||
return p.Room
|
||||
}
|
||||
|
||||
func (p *AudioCallResp) GetAuth() (v string) {
|
||||
return p.Auth
|
||||
}
|
||||
|
||||
func (p *AudioCallResp) GetLivekitServer() (v string) {
|
||||
return p.LivekitServer
|
||||
}
|
||||
|
||||
var fieldIDToName_AudioCallResp = map[int16]string{
|
||||
1: "code",
|
||||
2: "msg",
|
||||
3: "room",
|
||||
4: "auth",
|
||||
5: "livekit_server",
|
||||
}
|
||||
|
||||
func (p *AudioCallResp) Read(iprot thrift.TProtocol) (err error) {
|
||||
@@ -323,30 +305,6 @@ func (p *AudioCallResp) Read(iprot thrift.TProtocol) (err error) {
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 3:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
if err = p.ReadField3(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 4:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
if err = p.ReadField4(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 5:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
if err = p.ReadField5(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
default:
|
||||
if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
@@ -398,39 +356,6 @@ func (p *AudioCallResp) ReadField2(iprot thrift.TProtocol) error {
|
||||
p.Msg = _field
|
||||
return nil
|
||||
}
|
||||
func (p *AudioCallResp) ReadField3(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field string
|
||||
if v, err := iprot.ReadString(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Room = _field
|
||||
return nil
|
||||
}
|
||||
func (p *AudioCallResp) ReadField4(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field string
|
||||
if v, err := iprot.ReadString(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Auth = _field
|
||||
return nil
|
||||
}
|
||||
func (p *AudioCallResp) ReadField5(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field string
|
||||
if v, err := iprot.ReadString(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.LivekitServer = _field
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AudioCallResp) Write(oprot thrift.TProtocol) (err error) {
|
||||
var fieldId int16
|
||||
@@ -446,18 +371,6 @@ func (p *AudioCallResp) Write(oprot thrift.TProtocol) (err error) {
|
||||
fieldId = 2
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField3(oprot); err != nil {
|
||||
fieldId = 3
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField4(oprot); err != nil {
|
||||
fieldId = 4
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField5(oprot); err != nil {
|
||||
fieldId = 5
|
||||
goto WriteFieldError
|
||||
}
|
||||
}
|
||||
if err = oprot.WriteFieldStop(); err != nil {
|
||||
goto WriteFieldStopError
|
||||
@@ -508,54 +421,6 @@ WriteFieldBeginError:
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err)
|
||||
}
|
||||
func (p *AudioCallResp) writeField3(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("room", thrift.STRING, 3); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteString(p.Room); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 3 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err)
|
||||
}
|
||||
func (p *AudioCallResp) writeField4(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("auth", thrift.STRING, 4); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteString(p.Auth); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 4 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err)
|
||||
}
|
||||
func (p *AudioCallResp) writeField5(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("livekit_server", thrift.STRING, 5); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteString(p.LivekitServer); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 5 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallResp) String() string {
|
||||
if p == nil {
|
||||
@@ -566,7 +431,7 @@ func (p *AudioCallResp) String() string {
|
||||
}
|
||||
|
||||
type AudioCallService interface {
|
||||
HelloMethod(ctx context.Context, request *AudioCallReq) (r *AudioCallResp, err error)
|
||||
Call(ctx context.Context, request *AudioCallReq) (r *AudioCallResp, err error)
|
||||
}
|
||||
|
||||
type AudioCallServiceClient struct {
|
||||
@@ -595,11 +460,11 @@ func (p *AudioCallServiceClient) Client_() thrift.TClient {
|
||||
return p.c
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceClient) HelloMethod(ctx context.Context, request *AudioCallReq) (r *AudioCallResp, err error) {
|
||||
var _args AudioCallServiceHelloMethodArgs
|
||||
func (p *AudioCallServiceClient) Call(ctx context.Context, request *AudioCallReq) (r *AudioCallResp, err error) {
|
||||
var _args AudioCallServiceCallArgs
|
||||
_args.Request = request
|
||||
var _result AudioCallServiceHelloMethodResult
|
||||
if err = p.Client_().Call(ctx, "HelloMethod", &_args, &_result); err != nil {
|
||||
var _result AudioCallServiceCallResult
|
||||
if err = p.Client_().Call(ctx, "Call", &_args, &_result); err != nil {
|
||||
return
|
||||
}
|
||||
return _result.GetSuccess(), nil
|
||||
@@ -625,7 +490,7 @@ func (p *AudioCallServiceProcessor) ProcessorMap() map[string]thrift.TProcessorF
|
||||
|
||||
func NewAudioCallServiceProcessor(handler AudioCallService) *AudioCallServiceProcessor {
|
||||
self := &AudioCallServiceProcessor{handler: handler, processorMap: make(map[string]thrift.TProcessorFunction)}
|
||||
self.AddToProcessorMap("HelloMethod", &audioCallServiceProcessorHelloMethod{handler: handler})
|
||||
self.AddToProcessorMap("Call", &audioCallServiceProcessorCall{handler: handler})
|
||||
return self
|
||||
}
|
||||
func (p *AudioCallServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
|
||||
@@ -646,16 +511,16 @@ func (p *AudioCallServiceProcessor) Process(ctx context.Context, iprot, oprot th
|
||||
return false, x
|
||||
}
|
||||
|
||||
type audioCallServiceProcessorHelloMethod struct {
|
||||
type audioCallServiceProcessorCall struct {
|
||||
handler AudioCallService
|
||||
}
|
||||
|
||||
func (p *audioCallServiceProcessorHelloMethod) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
|
||||
args := AudioCallServiceHelloMethodArgs{}
|
||||
func (p *audioCallServiceProcessorCall) Process(ctx context.Context, seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
|
||||
args := AudioCallServiceCallArgs{}
|
||||
if err = args.Read(iprot); err != nil {
|
||||
iprot.ReadMessageEnd()
|
||||
x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
|
||||
oprot.WriteMessageBegin("HelloMethod", thrift.EXCEPTION, seqId)
|
||||
oprot.WriteMessageBegin("Call", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush(ctx)
|
||||
@@ -664,11 +529,11 @@ func (p *audioCallServiceProcessorHelloMethod) Process(ctx context.Context, seqI
|
||||
|
||||
iprot.ReadMessageEnd()
|
||||
var err2 error
|
||||
result := AudioCallServiceHelloMethodResult{}
|
||||
result := AudioCallServiceCallResult{}
|
||||
var retval *AudioCallResp
|
||||
if retval, err2 = p.handler.HelloMethod(ctx, args.Request); err2 != nil {
|
||||
x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing HelloMethod: "+err2.Error())
|
||||
oprot.WriteMessageBegin("HelloMethod", thrift.EXCEPTION, seqId)
|
||||
if retval, err2 = p.handler.Call(ctx, args.Request); err2 != nil {
|
||||
x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing Call: "+err2.Error())
|
||||
oprot.WriteMessageBegin("Call", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush(ctx)
|
||||
@@ -676,7 +541,7 @@ func (p *audioCallServiceProcessorHelloMethod) Process(ctx context.Context, seqI
|
||||
} else {
|
||||
result.Success = retval
|
||||
}
|
||||
if err2 = oprot.WriteMessageBegin("HelloMethod", thrift.REPLY, seqId); err2 != nil {
|
||||
if err2 = oprot.WriteMessageBegin("Call", thrift.REPLY, seqId); err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = result.Write(oprot); err == nil && err2 != nil {
|
||||
@@ -694,35 +559,35 @@ func (p *audioCallServiceProcessorHelloMethod) Process(ctx context.Context, seqI
|
||||
return true, err
|
||||
}
|
||||
|
||||
type AudioCallServiceHelloMethodArgs struct {
|
||||
type AudioCallServiceCallArgs struct {
|
||||
Request *AudioCallReq `thrift:"request,1"`
|
||||
}
|
||||
|
||||
func NewAudioCallServiceHelloMethodArgs() *AudioCallServiceHelloMethodArgs {
|
||||
return &AudioCallServiceHelloMethodArgs{}
|
||||
func NewAudioCallServiceCallArgs() *AudioCallServiceCallArgs {
|
||||
return &AudioCallServiceCallArgs{}
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) InitDefault() {
|
||||
func (p *AudioCallServiceCallArgs) InitDefault() {
|
||||
}
|
||||
|
||||
var AudioCallServiceHelloMethodArgs_Request_DEFAULT *AudioCallReq
|
||||
var AudioCallServiceCallArgs_Request_DEFAULT *AudioCallReq
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) GetRequest() (v *AudioCallReq) {
|
||||
func (p *AudioCallServiceCallArgs) GetRequest() (v *AudioCallReq) {
|
||||
if !p.IsSetRequest() {
|
||||
return AudioCallServiceHelloMethodArgs_Request_DEFAULT
|
||||
return AudioCallServiceCallArgs_Request_DEFAULT
|
||||
}
|
||||
return p.Request
|
||||
}
|
||||
|
||||
var fieldIDToName_AudioCallServiceHelloMethodArgs = map[int16]string{
|
||||
var fieldIDToName_AudioCallServiceCallArgs = map[int16]string{
|
||||
1: "request",
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) IsSetRequest() bool {
|
||||
func (p *AudioCallServiceCallArgs) IsSetRequest() bool {
|
||||
return p.Request != nil
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) Read(iprot thrift.TProtocol) (err error) {
|
||||
func (p *AudioCallServiceCallArgs) Read(iprot thrift.TProtocol) (err error) {
|
||||
var fieldTypeId thrift.TType
|
||||
var fieldId int16
|
||||
|
||||
@@ -767,7 +632,7 @@ ReadStructBeginError:
|
||||
ReadFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d begin error: ", p, fieldId), err)
|
||||
ReadFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d '%s' error: ", p, fieldId, fieldIDToName_AudioCallServiceHelloMethodArgs[fieldId]), err)
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d '%s' error: ", p, fieldId, fieldIDToName_AudioCallServiceCallArgs[fieldId]), err)
|
||||
SkipFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d skip type %d error: ", p, fieldId, fieldTypeId), err)
|
||||
|
||||
@@ -777,7 +642,7 @@ ReadStructEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) ReadField1(iprot thrift.TProtocol) error {
|
||||
func (p *AudioCallServiceCallArgs) ReadField1(iprot thrift.TProtocol) error {
|
||||
_field := NewAudioCallReq()
|
||||
if err := _field.Read(iprot); err != nil {
|
||||
return err
|
||||
@@ -786,9 +651,9 @@ func (p *AudioCallServiceHelloMethodArgs) ReadField1(iprot thrift.TProtocol) err
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) Write(oprot thrift.TProtocol) (err error) {
|
||||
func (p *AudioCallServiceCallArgs) Write(oprot thrift.TProtocol) (err error) {
|
||||
var fieldId int16
|
||||
if err = oprot.WriteStructBegin("HelloMethod_args"); err != nil {
|
||||
if err = oprot.WriteStructBegin("Call_args"); err != nil {
|
||||
goto WriteStructBeginError
|
||||
}
|
||||
if p != nil {
|
||||
@@ -814,7 +679,7 @@ WriteStructEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) writeField1(oprot thrift.TProtocol) (err error) {
|
||||
func (p *AudioCallServiceCallArgs) writeField1(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("request", thrift.STRUCT, 1); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
@@ -831,43 +696,43 @@ WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodArgs) String() string {
|
||||
func (p *AudioCallServiceCallArgs) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("AudioCallServiceHelloMethodArgs(%+v)", *p)
|
||||
return fmt.Sprintf("AudioCallServiceCallArgs(%+v)", *p)
|
||||
|
||||
}
|
||||
|
||||
type AudioCallServiceHelloMethodResult struct {
|
||||
type AudioCallServiceCallResult struct {
|
||||
Success *AudioCallResp `thrift:"success,0,optional"`
|
||||
}
|
||||
|
||||
func NewAudioCallServiceHelloMethodResult() *AudioCallServiceHelloMethodResult {
|
||||
return &AudioCallServiceHelloMethodResult{}
|
||||
func NewAudioCallServiceCallResult() *AudioCallServiceCallResult {
|
||||
return &AudioCallServiceCallResult{}
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) InitDefault() {
|
||||
func (p *AudioCallServiceCallResult) InitDefault() {
|
||||
}
|
||||
|
||||
var AudioCallServiceHelloMethodResult_Success_DEFAULT *AudioCallResp
|
||||
var AudioCallServiceCallResult_Success_DEFAULT *AudioCallResp
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) GetSuccess() (v *AudioCallResp) {
|
||||
func (p *AudioCallServiceCallResult) GetSuccess() (v *AudioCallResp) {
|
||||
if !p.IsSetSuccess() {
|
||||
return AudioCallServiceHelloMethodResult_Success_DEFAULT
|
||||
return AudioCallServiceCallResult_Success_DEFAULT
|
||||
}
|
||||
return p.Success
|
||||
}
|
||||
|
||||
var fieldIDToName_AudioCallServiceHelloMethodResult = map[int16]string{
|
||||
var fieldIDToName_AudioCallServiceCallResult = map[int16]string{
|
||||
0: "success",
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) IsSetSuccess() bool {
|
||||
func (p *AudioCallServiceCallResult) IsSetSuccess() bool {
|
||||
return p.Success != nil
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) Read(iprot thrift.TProtocol) (err error) {
|
||||
func (p *AudioCallServiceCallResult) Read(iprot thrift.TProtocol) (err error) {
|
||||
var fieldTypeId thrift.TType
|
||||
var fieldId int16
|
||||
|
||||
@@ -912,7 +777,7 @@ ReadStructBeginError:
|
||||
ReadFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d begin error: ", p, fieldId), err)
|
||||
ReadFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d '%s' error: ", p, fieldId, fieldIDToName_AudioCallServiceHelloMethodResult[fieldId]), err)
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d '%s' error: ", p, fieldId, fieldIDToName_AudioCallServiceCallResult[fieldId]), err)
|
||||
SkipFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d skip type %d error: ", p, fieldId, fieldTypeId), err)
|
||||
|
||||
@@ -922,7 +787,7 @@ ReadStructEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) ReadField0(iprot thrift.TProtocol) error {
|
||||
func (p *AudioCallServiceCallResult) ReadField0(iprot thrift.TProtocol) error {
|
||||
_field := NewAudioCallResp()
|
||||
if err := _field.Read(iprot); err != nil {
|
||||
return err
|
||||
@@ -931,9 +796,9 @@ func (p *AudioCallServiceHelloMethodResult) ReadField0(iprot thrift.TProtocol) e
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) Write(oprot thrift.TProtocol) (err error) {
|
||||
func (p *AudioCallServiceCallResult) Write(oprot thrift.TProtocol) (err error) {
|
||||
var fieldId int16
|
||||
if err = oprot.WriteStructBegin("HelloMethod_result"); err != nil {
|
||||
if err = oprot.WriteStructBegin("Call_result"); err != nil {
|
||||
goto WriteStructBeginError
|
||||
}
|
||||
if p != nil {
|
||||
@@ -959,7 +824,7 @@ WriteStructEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) writeField0(oprot thrift.TProtocol) (err error) {
|
||||
func (p *AudioCallServiceCallResult) writeField0(oprot thrift.TProtocol) (err error) {
|
||||
if p.IsSetSuccess() {
|
||||
if err = oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
@@ -978,10 +843,10 @@ WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 0 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *AudioCallServiceHelloMethodResult) String() string {
|
||||
func (p *AudioCallServiceCallResult) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("AudioCallServiceHelloMethodResult(%+v)", *p)
|
||||
return fmt.Sprintf("AudioCallServiceCallResult(%+v)", *p)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user