idl

package
v0.0.0-...-8010d25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddIDLReq

type AddIDLReq struct {
	RepositoryId          int64  `thrift:"repository_id,1" frugal:"1,default,i64" form:"repository_id,required" json:"repository_id,required"`
	MainIdlPath           string `thrift:"main_idl_path,2" frugal:"2,default,string" form:"main_idl_path,required" json:"main_idl_path,required" vd:"len($)>0"`
	ServiceName           string `thrift:"service_name,3" frugal:"3,default,string" form:"service_name,required" json:"service_name,required" vd:"len($)>0"`
	ServiceRepositoryName string `thrift:"service_repository_name,4" frugal:"4,default,string" form:"service_repository_name" json:"service_repository_name"`
}

func NewAddIDLReq

func NewAddIDLReq() *AddIDLReq

func (*AddIDLReq) GetMainIdlPath

func (p *AddIDLReq) GetMainIdlPath() (v string)

func (*AddIDLReq) GetRepositoryId

func (p *AddIDLReq) GetRepositoryId() (v int64)

func (*AddIDLReq) GetServiceName

func (p *AddIDLReq) GetServiceName() (v string)

func (*AddIDLReq) GetServiceRepositoryName

func (p *AddIDLReq) GetServiceRepositoryName() (v string)

func (*AddIDLReq) InitDefault

func (p *AddIDLReq) InitDefault()

func (*AddIDLReq) SetMainIdlPath

func (p *AddIDLReq) SetMainIdlPath(val string)

func (*AddIDLReq) SetRepositoryId

func (p *AddIDLReq) SetRepositoryId(val int64)

func (*AddIDLReq) SetServiceName

func (p *AddIDLReq) SetServiceName(val string)

func (*AddIDLReq) SetServiceRepositoryName

func (p *AddIDLReq) SetServiceRepositoryName(val string)

func (*AddIDLReq) String

func (p *AddIDLReq) String() string

type AddIDLRes

type AddIDLRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewAddIDLRes

func NewAddIDLRes() *AddIDLRes

func (*AddIDLRes) GetCode

func (p *AddIDLRes) GetCode() (v int32)

func (*AddIDLRes) GetMsg

func (p *AddIDLRes) GetMsg() (v string)

func (*AddIDLRes) InitDefault

func (p *AddIDLRes) InitDefault()

func (*AddIDLRes) SetCode

func (p *AddIDLRes) SetCode(val int32)

func (*AddIDLRes) SetMsg

func (p *AddIDLRes) SetMsg(val string)

func (*AddIDLRes) String

func (p *AddIDLRes) String() string

type DeleteIDLsReq

type DeleteIDLsReq struct {
	Ids []int64 `thrift:"ids,1" frugal:"1,default,list<i64>" form:"ids,required" json:"ids,required" vd:"len($)>0"`
}

func NewDeleteIDLsReq

func NewDeleteIDLsReq() *DeleteIDLsReq

func (*DeleteIDLsReq) GetIds

func (p *DeleteIDLsReq) GetIds() (v []int64)

func (*DeleteIDLsReq) InitDefault

func (p *DeleteIDLsReq) InitDefault()

func (*DeleteIDLsReq) SetIds

func (p *DeleteIDLsReq) SetIds(val []int64)

func (*DeleteIDLsReq) String

func (p *DeleteIDLsReq) String() string

type DeleteIDLsRes

type DeleteIDLsRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewDeleteIDLsRes

func NewDeleteIDLsRes() *DeleteIDLsRes

func (*DeleteIDLsRes) GetCode

func (p *DeleteIDLsRes) GetCode() (v int32)

func (*DeleteIDLsRes) GetMsg

func (p *DeleteIDLsRes) GetMsg() (v string)

func (*DeleteIDLsRes) InitDefault

func (p *DeleteIDLsRes) InitDefault()

func (*DeleteIDLsRes) SetCode

func (p *DeleteIDLsRes) SetCode(val int32)

func (*DeleteIDLsRes) SetMsg

func (p *DeleteIDLsRes) SetMsg(val string)

func (*DeleteIDLsRes) String

func (p *DeleteIDLsRes) String() string

type GetIDLsReq

type GetIDLsReq struct {
	Page        int32  `thrift:"page,1" frugal:"1,default,i32" json:"page" query:"page" vd:"$>=0"`
	Limit       int32  `thrift:"limit,2" frugal:"2,default,i32" json:"limit" query:"limit" vd:"$>=0"`
	Order       int32  `thrift:"order,3" frugal:"3,default,i32" json:"order" query:"order" vd:"$>=0"`
	OrderBy     string `thrift:"order_by,4" frugal:"4,default,string" json:"order_by" query:"order_by"`
	ServiceName string `thrift:"service_name,5" frugal:"5,default,string" json:"service_name" query:"service_name"`
}

func NewGetIDLsReq

func NewGetIDLsReq() *GetIDLsReq

func (*GetIDLsReq) GetLimit

func (p *GetIDLsReq) GetLimit() (v int32)

func (*GetIDLsReq) GetOrder

func (p *GetIDLsReq) GetOrder() (v int32)

func (*GetIDLsReq) GetOrderBy

func (p *GetIDLsReq) GetOrderBy() (v string)

func (*GetIDLsReq) GetPage

func (p *GetIDLsReq) GetPage() (v int32)

func (*GetIDLsReq) GetServiceName

func (p *GetIDLsReq) GetServiceName() (v string)

func (*GetIDLsReq) InitDefault

func (p *GetIDLsReq) InitDefault()

func (*GetIDLsReq) SetLimit

func (p *GetIDLsReq) SetLimit(val int32)

func (*GetIDLsReq) SetOrder

func (p *GetIDLsReq) SetOrder(val int32)

func (*GetIDLsReq) SetOrderBy

func (p *GetIDLsReq) SetOrderBy(val string)

func (*GetIDLsReq) SetPage

func (p *GetIDLsReq) SetPage(val int32)

func (*GetIDLsReq) SetServiceName

func (p *GetIDLsReq) SetServiceName(val string)

func (*GetIDLsReq) String

func (p *GetIDLsReq) String() string

type GetIDLsRes

type GetIDLsRes struct {
	Code int32           `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string          `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
	Data *GetIDLsResData `thrift:"data,3" frugal:"3,default,GetIDLsResData" form:"data" json:"data" query:"data"`
}

func NewGetIDLsRes

func NewGetIDLsRes() *GetIDLsRes

func (*GetIDLsRes) GetCode

func (p *GetIDLsRes) GetCode() (v int32)

func (*GetIDLsRes) GetData

func (p *GetIDLsRes) GetData() (v *GetIDLsResData)

func (*GetIDLsRes) GetMsg

func (p *GetIDLsRes) GetMsg() (v string)

func (*GetIDLsRes) InitDefault

func (p *GetIDLsRes) InitDefault()

func (*GetIDLsRes) IsSetData

func (p *GetIDLsRes) IsSetData() bool

func (*GetIDLsRes) SetCode

func (p *GetIDLsRes) SetCode(val int32)

func (*GetIDLsRes) SetData

func (p *GetIDLsRes) SetData(val *GetIDLsResData)

func (*GetIDLsRes) SetMsg

func (p *GetIDLsRes) SetMsg(val string)

func (*GetIDLsRes) String

func (p *GetIDLsRes) String() string

type GetIDLsResData

type GetIDLsResData struct {
	Idls  []*model.IDLWithRepositoryInfo `thrift:"idls,1" frugal:"1,default,list<model.IDLWithRepositoryInfo>" form:"idls" json:"idls" query:"idls"`
	Total int32                          `thrift:"total,2" frugal:"2,default,i32" form:"total" json:"total" query:"total"`
}
var GetIDLsRes_Data_DEFAULT *GetIDLsResData

func NewGetIDLsResData

func NewGetIDLsResData() *GetIDLsResData

func (*GetIDLsResData) GetIdls

func (p *GetIDLsResData) GetIdls() (v []*model.IDLWithRepositoryInfo)

func (*GetIDLsResData) GetTotal

func (p *GetIDLsResData) GetTotal() (v int32)

func (*GetIDLsResData) InitDefault

func (p *GetIDLsResData) InitDefault()

func (*GetIDLsResData) SetIdls

func (p *GetIDLsResData) SetIdls(val []*model.IDLWithRepositoryInfo)

func (*GetIDLsResData) SetTotal

func (p *GetIDLsResData) SetTotal(val int32)

func (*GetIDLsResData) String

func (p *GetIDLsResData) String() string

type IdlService

type IdlService interface {
	AddIDL(ctx context.Context, req *AddIDLReq) (r *AddIDLRes, err error)

	DeleteIDL(ctx context.Context, req *DeleteIDLsReq) (r *DeleteIDLsRes, err error)

	UpdateIDL(ctx context.Context, req *UpdateIDLReq) (r *UpdateIDLRes, err error)

	GetIDLs(ctx context.Context, req *GetIDLsReq) (r *GetIDLsRes, err error)

	SyncIDLs(ctx context.Context, req *SyncIDLsByIdReq) (r *SyncIDLsByIdRes, err error)
}

type SyncIDLsByIdReq

type SyncIDLsByIdReq struct {
	Ids []int64 `thrift:"ids,1" frugal:"1,default,list<i64>" form:"ids,required" json:"ids,required" vd:"len($)>0"`
}

func NewSyncIDLsByIdReq

func NewSyncIDLsByIdReq() *SyncIDLsByIdReq

func (*SyncIDLsByIdReq) GetIds

func (p *SyncIDLsByIdReq) GetIds() (v []int64)

func (*SyncIDLsByIdReq) InitDefault

func (p *SyncIDLsByIdReq) InitDefault()

func (*SyncIDLsByIdReq) SetIds

func (p *SyncIDLsByIdReq) SetIds(val []int64)

func (*SyncIDLsByIdReq) String

func (p *SyncIDLsByIdReq) String() string

type SyncIDLsByIdRes

type SyncIDLsByIdRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewSyncIDLsByIdRes

func NewSyncIDLsByIdRes() *SyncIDLsByIdRes

func (*SyncIDLsByIdRes) GetCode

func (p *SyncIDLsByIdRes) GetCode() (v int32)

func (*SyncIDLsByIdRes) GetMsg

func (p *SyncIDLsByIdRes) GetMsg() (v string)

func (*SyncIDLsByIdRes) InitDefault

func (p *SyncIDLsByIdRes) InitDefault()

func (*SyncIDLsByIdRes) SetCode

func (p *SyncIDLsByIdRes) SetCode(val int32)

func (*SyncIDLsByIdRes) SetMsg

func (p *SyncIDLsByIdRes) SetMsg(val string)

func (*SyncIDLsByIdRes) String

func (p *SyncIDLsByIdRes) String() string

type UpdateIDLReq

type UpdateIDLReq struct {
	Id          int64  `thrift:"id,1" frugal:"1,default,i64" form:"id,required" json:"id,required"`
	Status      int32  `thrift:"status,2" frugal:"2,default,i32" form:"status" json:"status"`
	ServiceName string `thrift:"service_name,3" frugal:"3,default,string" form:"service_name" json:"service_name"`
}

func NewUpdateIDLReq

func NewUpdateIDLReq() *UpdateIDLReq

func (*UpdateIDLReq) GetId

func (p *UpdateIDLReq) GetId() (v int64)

func (*UpdateIDLReq) GetServiceName

func (p *UpdateIDLReq) GetServiceName() (v string)

func (*UpdateIDLReq) GetStatus

func (p *UpdateIDLReq) GetStatus() (v int32)

func (*UpdateIDLReq) InitDefault

func (p *UpdateIDLReq) InitDefault()

func (*UpdateIDLReq) SetId

func (p *UpdateIDLReq) SetId(val int64)

func (*UpdateIDLReq) SetServiceName

func (p *UpdateIDLReq) SetServiceName(val string)

func (*UpdateIDLReq) SetStatus

func (p *UpdateIDLReq) SetStatus(val int32)

func (*UpdateIDLReq) String

func (p *UpdateIDLReq) String() string

type UpdateIDLRes

type UpdateIDLRes struct {
	Code int32  `thrift:"code,1" frugal:"1,default,i32" form:"code" json:"code" query:"code"`
	Msg  string `thrift:"msg,2" frugal:"2,default,string" form:"msg" json:"msg" query:"msg"`
}

func NewUpdateIDLRes

func NewUpdateIDLRes() *UpdateIDLRes

func (*UpdateIDLRes) GetCode

func (p *UpdateIDLRes) GetCode() (v int32)

func (*UpdateIDLRes) GetMsg

func (p *UpdateIDLRes) GetMsg() (v string)

func (*UpdateIDLRes) InitDefault

func (p *UpdateIDLRes) InitDefault()

func (*UpdateIDLRes) SetCode

func (p *UpdateIDLRes) SetCode(val int32)

func (*UpdateIDLRes) SetMsg

func (p *UpdateIDLRes) SetMsg(val string)

func (*UpdateIDLRes) String

func (p *UpdateIDLRes) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL