123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: adm_vehicle_style.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- v1 "adm-vehicle-style/pb/v1"
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() { proto.RegisterFile("adm_vehicle_style.proto", fileDescriptor_7df2a90d4754b945) }
- var fileDescriptor_7df2a90d4754b945 = []byte{
- // 632 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x5b, 0x6f, 0xd3, 0x30,
- 0x14, 0xe6, 0x85, 0x89, 0x9d, 0x75, 0xeb, 0xea, 0xde, 0x20, 0x6c, 0x02, 0xf1, 0xbe, 0x54, 0x1d,
- 0x48, 0x15, 0x37, 0x01, 0x6b, 0x0b, 0xaa, 0x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70, 0x2c, 0x43, 0xf3, 0x97, 0x4d, 0xeb,
- 0xf0, 0xbf, 0xbc, 0x70, 0x17, 0xbd, 0x6f, 0x1d, 0xea, 0xf8, 0x67, 0xbb, 0x5f, 0x82, 0x33, 0xfe,
- 0x4b, 0x30, 0x88, 0x96, 0xcb, 0x3d, 0xfe, 0x1f, 0xf0, 0xf8, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff,
- 0xf7, 0x7e, 0xfd, 0x74, 0x55, 0x08, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // VehicleStyleClient is the client API for VehicleStyle service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type VehicleStyleClient interface {
- // 品牌列表
- BrandList(ctx context.Context, in *v1.BrandListRequest, opts ...grpc.CallOption) (*v1.BrandListReply, error)
- // 模糊搜索
- Search(ctx context.Context, in *v1.SearchRequest, opts ...grpc.CallOption) (*v1.SearchReply, error)
- // 更新品牌信息
- UpdateSYBrand(ctx context.Context, in *v1.UpdateSYBrandRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 获取厂商列表
- GetMaker(ctx context.Context, in *v1.GetMakerRequest, opts ...grpc.CallOption) (*v1.GetMakerReply, error)
- // 更新厂商
- UpdateMaker(ctx context.Context, in *v1.UpdateMakerRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 车系列表
- SeriesList(ctx context.Context, in *v1.SeriesListRequest, opts ...grpc.CallOption) (*v1.SeriesListReply, error)
- // 更新车系
- UpdateSeries(ctx context.Context, in *v1.UpdateSeriesRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 车型列表
- StyleList(ctx context.Context, in *v1.StyleListRequest, opts ...grpc.CallOption) (*v1.StyleListReply, error)
- // 更新车型
- UpdateStyle(ctx context.Context, in *v1.UpdateStyleRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 获取车辆配置信息
- StyleInfo(ctx context.Context, in *v1.StyleInfoRequest, opts ...grpc.CallOption) (*v1.StyleInfoReply, error)
- // 更新车辆配置信息
- UpdateStyleInfo(ctx context.Context, in *v1.UpdateStyleInfoRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 维保手册
- MaintainManual(ctx context.Context, in *v1.MaintainManualRequest, opts ...grpc.CallOption) (*v1.MaintainManualReply, error)
- // 项目列表
- ItemList(ctx context.Context, in *v1.ItemListRequest, opts ...grpc.CallOption) (*v1.ItemListReply, error)
- // 更新维保手册
- UpdateMaintainManual(ctx context.Context, in *v1.UpdateMaintainManualRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 维保详情
- MaintainManualInfo(ctx context.Context, in *v1.MaintainManualInfoRequest, opts ...grpc.CallOption) (*v1.MaintainManualInfoReply, error)
- // 配件参数
- StyleItem(ctx context.Context, in *v1.MaintainManualRequest, opts ...grpc.CallOption) (*v1.StyleItemReply, error)
- // 获取c2列表
- C2List(ctx context.Context, in *v1.C2ListRequest, opts ...grpc.CallOption) (*v1.C2ListReply, error)
- // 修改配件参数信息
- UpdateStyleItem(ctx context.Context, in *v1.UpdateStyleItemRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 删除维保信息
- DeleteMaintainace(ctx context.Context, in *v1.DeleteMaintainaceRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 车型信息导出
- ExportStyle(ctx context.Context, in *v1.ExportStyleRequest, opts ...grpc.CallOption) (*v1.ExportStyleReply, error)
- // 车型导出列表
- ExportStyleTaskList(ctx context.Context, in *v1.EmptyReply, opts ...grpc.CallOption) (*v1.ExportStyleTaskListReply, error)
- // 删除车型导出列表
- DeleteExportStyleTask(ctx context.Context, in *v1.DeleteExportStyleTaskRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 通用接口查询
- Query(ctx context.Context, in *v1.QueryRequest, opts ...grpc.CallOption) (*v1.QueryResponse, error)
- // 删除配件信息
- DeleteStyleItem(ctx context.Context, in *v1.DeleteStyleItemRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 模板列表
- TemplateList(ctx context.Context, in *v1.TemplateListRequest, opts ...grpc.CallOption) (*v1.TemplateListReply, error)
- // 模板详情列表
- TemplateDetailList(ctx context.Context, in *v1.TemplateDetailListRequest, opts ...grpc.CallOption) (*v1.TemplateDetailListReply, error)
- // 模板详情
- TemplateDetail(ctx context.Context, in *v1.TemplateDetailRequest, opts ...grpc.CallOption) (*v1.TemplateDetailReply, error)
- // 增加模板
- AddTemplateDetail(ctx context.Context, in *v1.AddTemplateDetailRequest, opts ...grpc.CallOption) (*v1.AddTemplateDetailReply, error)
- // 修改模板
- UpdateTemplateDetail(ctx context.Context, in *v1.UpdateMaintainManualRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 选择模板
- ChooseTemplateDetail(ctx context.Context, in *v1.ChooseTemplateDetailRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error)
- // 项目列表
- TemplateItemList(ctx context.Context, in *v1.TemplateItemListRequest, opts ...grpc.CallOption) (*v1.ItemListReply, error)
- }
- type vehicleStyleClient struct {
- cc *grpc.ClientConn
- }
- func NewVehicleStyleClient(cc *grpc.ClientConn) VehicleStyleClient {
- return &vehicleStyleClient{cc}
- }
- func (c *vehicleStyleClient) BrandList(ctx context.Context, in *v1.BrandListRequest, opts ...grpc.CallOption) (*v1.BrandListReply, error) {
- out := new(v1.BrandListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/BrandList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) Search(ctx context.Context, in *v1.SearchRequest, opts ...grpc.CallOption) (*v1.SearchReply, error) {
- out := new(v1.SearchReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/Search", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateSYBrand(ctx context.Context, in *v1.UpdateSYBrandRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateSYBrand", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) GetMaker(ctx context.Context, in *v1.GetMakerRequest, opts ...grpc.CallOption) (*v1.GetMakerReply, error) {
- out := new(v1.GetMakerReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/GetMaker", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateMaker(ctx context.Context, in *v1.UpdateMakerRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateMaker", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) SeriesList(ctx context.Context, in *v1.SeriesListRequest, opts ...grpc.CallOption) (*v1.SeriesListReply, error) {
- out := new(v1.SeriesListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/SeriesList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateSeries(ctx context.Context, in *v1.UpdateSeriesRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateSeries", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) StyleList(ctx context.Context, in *v1.StyleListRequest, opts ...grpc.CallOption) (*v1.StyleListReply, error) {
- out := new(v1.StyleListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/StyleList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateStyle(ctx context.Context, in *v1.UpdateStyleRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateStyle", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) StyleInfo(ctx context.Context, in *v1.StyleInfoRequest, opts ...grpc.CallOption) (*v1.StyleInfoReply, error) {
- out := new(v1.StyleInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/StyleInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateStyleInfo(ctx context.Context, in *v1.UpdateStyleInfoRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateStyleInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) MaintainManual(ctx context.Context, in *v1.MaintainManualRequest, opts ...grpc.CallOption) (*v1.MaintainManualReply, error) {
- out := new(v1.MaintainManualReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/MaintainManual", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) ItemList(ctx context.Context, in *v1.ItemListRequest, opts ...grpc.CallOption) (*v1.ItemListReply, error) {
- out := new(v1.ItemListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/ItemList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateMaintainManual(ctx context.Context, in *v1.UpdateMaintainManualRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateMaintainManual", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) MaintainManualInfo(ctx context.Context, in *v1.MaintainManualInfoRequest, opts ...grpc.CallOption) (*v1.MaintainManualInfoReply, error) {
- out := new(v1.MaintainManualInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/MaintainManualInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) StyleItem(ctx context.Context, in *v1.MaintainManualRequest, opts ...grpc.CallOption) (*v1.StyleItemReply, error) {
- out := new(v1.StyleItemReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/StyleItem", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) C2List(ctx context.Context, in *v1.C2ListRequest, opts ...grpc.CallOption) (*v1.C2ListReply, error) {
- out := new(v1.C2ListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/C2List", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateStyleItem(ctx context.Context, in *v1.UpdateStyleItemRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateStyleItem", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) DeleteMaintainace(ctx context.Context, in *v1.DeleteMaintainaceRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/DeleteMaintainace", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) ExportStyle(ctx context.Context, in *v1.ExportStyleRequest, opts ...grpc.CallOption) (*v1.ExportStyleReply, error) {
- out := new(v1.ExportStyleReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/ExportStyle", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) ExportStyleTaskList(ctx context.Context, in *v1.EmptyReply, opts ...grpc.CallOption) (*v1.ExportStyleTaskListReply, error) {
- out := new(v1.ExportStyleTaskListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/ExportStyleTaskList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) DeleteExportStyleTask(ctx context.Context, in *v1.DeleteExportStyleTaskRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/DeleteExportStyleTask", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) Query(ctx context.Context, in *v1.QueryRequest, opts ...grpc.CallOption) (*v1.QueryResponse, error) {
- out := new(v1.QueryResponse)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/Query", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) DeleteStyleItem(ctx context.Context, in *v1.DeleteStyleItemRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/DeleteStyleItem", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) TemplateList(ctx context.Context, in *v1.TemplateListRequest, opts ...grpc.CallOption) (*v1.TemplateListReply, error) {
- out := new(v1.TemplateListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/TemplateList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) TemplateDetailList(ctx context.Context, in *v1.TemplateDetailListRequest, opts ...grpc.CallOption) (*v1.TemplateDetailListReply, error) {
- out := new(v1.TemplateDetailListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/TemplateDetailList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) TemplateDetail(ctx context.Context, in *v1.TemplateDetailRequest, opts ...grpc.CallOption) (*v1.TemplateDetailReply, error) {
- out := new(v1.TemplateDetailReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/TemplateDetail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) AddTemplateDetail(ctx context.Context, in *v1.AddTemplateDetailRequest, opts ...grpc.CallOption) (*v1.AddTemplateDetailReply, error) {
- out := new(v1.AddTemplateDetailReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/AddTemplateDetail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) UpdateTemplateDetail(ctx context.Context, in *v1.UpdateMaintainManualRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/UpdateTemplateDetail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) ChooseTemplateDetail(ctx context.Context, in *v1.ChooseTemplateDetailRequest, opts ...grpc.CallOption) (*v1.EmptyReply, error) {
- out := new(v1.EmptyReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/ChooseTemplateDetail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *vehicleStyleClient) TemplateItemList(ctx context.Context, in *v1.TemplateItemListRequest, opts ...grpc.CallOption) (*v1.ItemListReply, error) {
- out := new(v1.ItemListReply)
- err := c.cc.Invoke(ctx, "/pb.service.VehicleStyle/TemplateItemList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // VehicleStyleServer is the server API for VehicleStyle service.
- type VehicleStyleServer interface {
- // 品牌列表
- BrandList(context.Context, *v1.BrandListRequest) (*v1.BrandListReply, error)
- // 模糊搜索
- Search(context.Context, *v1.SearchRequest) (*v1.SearchReply, error)
- // 更新品牌信息
- UpdateSYBrand(context.Context, *v1.UpdateSYBrandRequest) (*v1.EmptyReply, error)
- // 获取厂商列表
- GetMaker(context.Context, *v1.GetMakerRequest) (*v1.GetMakerReply, error)
- // 更新厂商
- UpdateMaker(context.Context, *v1.UpdateMakerRequest) (*v1.EmptyReply, error)
- // 车系列表
- SeriesList(context.Context, *v1.SeriesListRequest) (*v1.SeriesListReply, error)
- // 更新车系
- UpdateSeries(context.Context, *v1.UpdateSeriesRequest) (*v1.EmptyReply, error)
- // 车型列表
- StyleList(context.Context, *v1.StyleListRequest) (*v1.StyleListReply, error)
- // 更新车型
- UpdateStyle(context.Context, *v1.UpdateStyleRequest) (*v1.EmptyReply, error)
- // 获取车辆配置信息
- StyleInfo(context.Context, *v1.StyleInfoRequest) (*v1.StyleInfoReply, error)
- // 更新车辆配置信息
- UpdateStyleInfo(context.Context, *v1.UpdateStyleInfoRequest) (*v1.EmptyReply, error)
- // 维保手册
- MaintainManual(context.Context, *v1.MaintainManualRequest) (*v1.MaintainManualReply, error)
- // 项目列表
- ItemList(context.Context, *v1.ItemListRequest) (*v1.ItemListReply, error)
- // 更新维保手册
- UpdateMaintainManual(context.Context, *v1.UpdateMaintainManualRequest) (*v1.EmptyReply, error)
- // 维保详情
- MaintainManualInfo(context.Context, *v1.MaintainManualInfoRequest) (*v1.MaintainManualInfoReply, error)
- // 配件参数
- StyleItem(context.Context, *v1.MaintainManualRequest) (*v1.StyleItemReply, error)
- // 获取c2列表
- C2List(context.Context, *v1.C2ListRequest) (*v1.C2ListReply, error)
- // 修改配件参数信息
- UpdateStyleItem(context.Context, *v1.UpdateStyleItemRequest) (*v1.EmptyReply, error)
- // 删除维保信息
- DeleteMaintainace(context.Context, *v1.DeleteMaintainaceRequest) (*v1.EmptyReply, error)
- // 车型信息导出
- ExportStyle(context.Context, *v1.ExportStyleRequest) (*v1.ExportStyleReply, error)
- // 车型导出列表
- ExportStyleTaskList(context.Context, *v1.EmptyReply) (*v1.ExportStyleTaskListReply, error)
- // 删除车型导出列表
- DeleteExportStyleTask(context.Context, *v1.DeleteExportStyleTaskRequest) (*v1.EmptyReply, error)
- // 通用接口查询
- Query(context.Context, *v1.QueryRequest) (*v1.QueryResponse, error)
- // 删除配件信息
- DeleteStyleItem(context.Context, *v1.DeleteStyleItemRequest) (*v1.EmptyReply, error)
- // 模板列表
- TemplateList(context.Context, *v1.TemplateListRequest) (*v1.TemplateListReply, error)
- // 模板详情列表
- TemplateDetailList(context.Context, *v1.TemplateDetailListRequest) (*v1.TemplateDetailListReply, error)
- // 模板详情
- TemplateDetail(context.Context, *v1.TemplateDetailRequest) (*v1.TemplateDetailReply, error)
- // 增加模板
- AddTemplateDetail(context.Context, *v1.AddTemplateDetailRequest) (*v1.AddTemplateDetailReply, error)
- // 修改模板
- UpdateTemplateDetail(context.Context, *v1.UpdateMaintainManualRequest) (*v1.EmptyReply, error)
- // 选择模板
- ChooseTemplateDetail(context.Context, *v1.ChooseTemplateDetailRequest) (*v1.EmptyReply, error)
- // 项目列表
- TemplateItemList(context.Context, *v1.TemplateItemListRequest) (*v1.ItemListReply, error)
- }
- // UnimplementedVehicleStyleServer can be embedded to have forward compatible implementations.
- type UnimplementedVehicleStyleServer struct {
- }
- func (*UnimplementedVehicleStyleServer) BrandList(ctx context.Context, req *v1.BrandListRequest) (*v1.BrandListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method BrandList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) Search(ctx context.Context, req *v1.SearchRequest) (*v1.SearchReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Search not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateSYBrand(ctx context.Context, req *v1.UpdateSYBrandRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateSYBrand not implemented")
- }
- func (*UnimplementedVehicleStyleServer) GetMaker(ctx context.Context, req *v1.GetMakerRequest) (*v1.GetMakerReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetMaker not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateMaker(ctx context.Context, req *v1.UpdateMakerRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateMaker not implemented")
- }
- func (*UnimplementedVehicleStyleServer) SeriesList(ctx context.Context, req *v1.SeriesListRequest) (*v1.SeriesListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SeriesList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateSeries(ctx context.Context, req *v1.UpdateSeriesRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateSeries not implemented")
- }
- func (*UnimplementedVehicleStyleServer) StyleList(ctx context.Context, req *v1.StyleListRequest) (*v1.StyleListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StyleList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateStyle(ctx context.Context, req *v1.UpdateStyleRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateStyle not implemented")
- }
- func (*UnimplementedVehicleStyleServer) StyleInfo(ctx context.Context, req *v1.StyleInfoRequest) (*v1.StyleInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StyleInfo not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateStyleInfo(ctx context.Context, req *v1.UpdateStyleInfoRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateStyleInfo not implemented")
- }
- func (*UnimplementedVehicleStyleServer) MaintainManual(ctx context.Context, req *v1.MaintainManualRequest) (*v1.MaintainManualReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaintainManual not implemented")
- }
- func (*UnimplementedVehicleStyleServer) ItemList(ctx context.Context, req *v1.ItemListRequest) (*v1.ItemListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ItemList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateMaintainManual(ctx context.Context, req *v1.UpdateMaintainManualRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateMaintainManual not implemented")
- }
- func (*UnimplementedVehicleStyleServer) MaintainManualInfo(ctx context.Context, req *v1.MaintainManualInfoRequest) (*v1.MaintainManualInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaintainManualInfo not implemented")
- }
- func (*UnimplementedVehicleStyleServer) StyleItem(ctx context.Context, req *v1.MaintainManualRequest) (*v1.StyleItemReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StyleItem not implemented")
- }
- func (*UnimplementedVehicleStyleServer) C2List(ctx context.Context, req *v1.C2ListRequest) (*v1.C2ListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method C2List not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateStyleItem(ctx context.Context, req *v1.UpdateStyleItemRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateStyleItem not implemented")
- }
- func (*UnimplementedVehicleStyleServer) DeleteMaintainace(ctx context.Context, req *v1.DeleteMaintainaceRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteMaintainace not implemented")
- }
- func (*UnimplementedVehicleStyleServer) ExportStyle(ctx context.Context, req *v1.ExportStyleRequest) (*v1.ExportStyleReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ExportStyle not implemented")
- }
- func (*UnimplementedVehicleStyleServer) ExportStyleTaskList(ctx context.Context, req *v1.EmptyReply) (*v1.ExportStyleTaskListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ExportStyleTaskList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) DeleteExportStyleTask(ctx context.Context, req *v1.DeleteExportStyleTaskRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteExportStyleTask not implemented")
- }
- func (*UnimplementedVehicleStyleServer) Query(ctx context.Context, req *v1.QueryRequest) (*v1.QueryResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Query not implemented")
- }
- func (*UnimplementedVehicleStyleServer) DeleteStyleItem(ctx context.Context, req *v1.DeleteStyleItemRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteStyleItem not implemented")
- }
- func (*UnimplementedVehicleStyleServer) TemplateList(ctx context.Context, req *v1.TemplateListRequest) (*v1.TemplateListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method TemplateList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) TemplateDetailList(ctx context.Context, req *v1.TemplateDetailListRequest) (*v1.TemplateDetailListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method TemplateDetailList not implemented")
- }
- func (*UnimplementedVehicleStyleServer) TemplateDetail(ctx context.Context, req *v1.TemplateDetailRequest) (*v1.TemplateDetailReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method TemplateDetail not implemented")
- }
- func (*UnimplementedVehicleStyleServer) AddTemplateDetail(ctx context.Context, req *v1.AddTemplateDetailRequest) (*v1.AddTemplateDetailReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method AddTemplateDetail not implemented")
- }
- func (*UnimplementedVehicleStyleServer) UpdateTemplateDetail(ctx context.Context, req *v1.UpdateMaintainManualRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateTemplateDetail not implemented")
- }
- func (*UnimplementedVehicleStyleServer) ChooseTemplateDetail(ctx context.Context, req *v1.ChooseTemplateDetailRequest) (*v1.EmptyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChooseTemplateDetail not implemented")
- }
- func (*UnimplementedVehicleStyleServer) TemplateItemList(ctx context.Context, req *v1.TemplateItemListRequest) (*v1.ItemListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method TemplateItemList not implemented")
- }
- func RegisterVehicleStyleServer(s *grpc.Server, srv VehicleStyleServer) {
- s.RegisterService(&_VehicleStyle_serviceDesc, srv)
- }
- func _VehicleStyle_BrandList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.BrandListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).BrandList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/BrandList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).BrandList(ctx, req.(*v1.BrandListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SearchRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).Search(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/Search",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).Search(ctx, req.(*v1.SearchRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateSYBrand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateSYBrandRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateSYBrand(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateSYBrand",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateSYBrand(ctx, req.(*v1.UpdateSYBrandRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_GetMaker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GetMakerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).GetMaker(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/GetMaker",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).GetMaker(ctx, req.(*v1.GetMakerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateMaker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateMakerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateMaker(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateMaker",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateMaker(ctx, req.(*v1.UpdateMakerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_SeriesList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SeriesListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).SeriesList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/SeriesList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).SeriesList(ctx, req.(*v1.SeriesListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateSeries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateSeriesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateSeries(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateSeries",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateSeries(ctx, req.(*v1.UpdateSeriesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_StyleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.StyleListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).StyleList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/StyleList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).StyleList(ctx, req.(*v1.StyleListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateStyleRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateStyle(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateStyle",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateStyle(ctx, req.(*v1.UpdateStyleRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_StyleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.StyleInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).StyleInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/StyleInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).StyleInfo(ctx, req.(*v1.StyleInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateStyleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateStyleInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateStyleInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateStyleInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateStyleInfo(ctx, req.(*v1.UpdateStyleInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_MaintainManual_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaintainManualRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).MaintainManual(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/MaintainManual",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).MaintainManual(ctx, req.(*v1.MaintainManualRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_ItemList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ItemListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).ItemList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/ItemList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).ItemList(ctx, req.(*v1.ItemListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateMaintainManual_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateMaintainManualRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateMaintainManual(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateMaintainManual",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateMaintainManual(ctx, req.(*v1.UpdateMaintainManualRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_MaintainManualInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaintainManualInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).MaintainManualInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/MaintainManualInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).MaintainManualInfo(ctx, req.(*v1.MaintainManualInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_StyleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaintainManualRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).StyleItem(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/StyleItem",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).StyleItem(ctx, req.(*v1.MaintainManualRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_C2List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.C2ListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).C2List(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/C2List",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).C2List(ctx, req.(*v1.C2ListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateStyleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateStyleItemRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateStyleItem(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateStyleItem",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateStyleItem(ctx, req.(*v1.UpdateStyleItemRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_DeleteMaintainace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeleteMaintainaceRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).DeleteMaintainace(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/DeleteMaintainace",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).DeleteMaintainace(ctx, req.(*v1.DeleteMaintainaceRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_ExportStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ExportStyleRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).ExportStyle(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/ExportStyle",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).ExportStyle(ctx, req.(*v1.ExportStyleRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_ExportStyleTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.EmptyReply)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).ExportStyleTaskList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/ExportStyleTaskList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).ExportStyleTaskList(ctx, req.(*v1.EmptyReply))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_DeleteExportStyleTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeleteExportStyleTaskRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).DeleteExportStyleTask(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/DeleteExportStyleTask",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).DeleteExportStyleTask(ctx, req.(*v1.DeleteExportStyleTaskRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.QueryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).Query(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/Query",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).Query(ctx, req.(*v1.QueryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_DeleteStyleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeleteStyleItemRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).DeleteStyleItem(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/DeleteStyleItem",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).DeleteStyleItem(ctx, req.(*v1.DeleteStyleItemRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_TemplateList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.TemplateListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).TemplateList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/TemplateList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).TemplateList(ctx, req.(*v1.TemplateListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_TemplateDetailList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.TemplateDetailListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).TemplateDetailList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/TemplateDetailList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).TemplateDetailList(ctx, req.(*v1.TemplateDetailListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_TemplateDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.TemplateDetailRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).TemplateDetail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/TemplateDetail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).TemplateDetail(ctx, req.(*v1.TemplateDetailRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_AddTemplateDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.AddTemplateDetailRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).AddTemplateDetail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/AddTemplateDetail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).AddTemplateDetail(ctx, req.(*v1.AddTemplateDetailRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_UpdateTemplateDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UpdateMaintainManualRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).UpdateTemplateDetail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/UpdateTemplateDetail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).UpdateTemplateDetail(ctx, req.(*v1.UpdateMaintainManualRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_ChooseTemplateDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChooseTemplateDetailRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).ChooseTemplateDetail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/ChooseTemplateDetail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).ChooseTemplateDetail(ctx, req.(*v1.ChooseTemplateDetailRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _VehicleStyle_TemplateItemList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.TemplateItemListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(VehicleStyleServer).TemplateItemList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.VehicleStyle/TemplateItemList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(VehicleStyleServer).TemplateItemList(ctx, req.(*v1.TemplateItemListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _VehicleStyle_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.VehicleStyle",
- HandlerType: (*VehicleStyleServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "BrandList",
- Handler: _VehicleStyle_BrandList_Handler,
- },
- {
- MethodName: "Search",
- Handler: _VehicleStyle_Search_Handler,
- },
- {
- MethodName: "UpdateSYBrand",
- Handler: _VehicleStyle_UpdateSYBrand_Handler,
- },
- {
- MethodName: "GetMaker",
- Handler: _VehicleStyle_GetMaker_Handler,
- },
- {
- MethodName: "UpdateMaker",
- Handler: _VehicleStyle_UpdateMaker_Handler,
- },
- {
- MethodName: "SeriesList",
- Handler: _VehicleStyle_SeriesList_Handler,
- },
- {
- MethodName: "UpdateSeries",
- Handler: _VehicleStyle_UpdateSeries_Handler,
- },
- {
- MethodName: "StyleList",
- Handler: _VehicleStyle_StyleList_Handler,
- },
- {
- MethodName: "UpdateStyle",
- Handler: _VehicleStyle_UpdateStyle_Handler,
- },
- {
- MethodName: "StyleInfo",
- Handler: _VehicleStyle_StyleInfo_Handler,
- },
- {
- MethodName: "UpdateStyleInfo",
- Handler: _VehicleStyle_UpdateStyleInfo_Handler,
- },
- {
- MethodName: "MaintainManual",
- Handler: _VehicleStyle_MaintainManual_Handler,
- },
- {
- MethodName: "ItemList",
- Handler: _VehicleStyle_ItemList_Handler,
- },
- {
- MethodName: "UpdateMaintainManual",
- Handler: _VehicleStyle_UpdateMaintainManual_Handler,
- },
- {
- MethodName: "MaintainManualInfo",
- Handler: _VehicleStyle_MaintainManualInfo_Handler,
- },
- {
- MethodName: "StyleItem",
- Handler: _VehicleStyle_StyleItem_Handler,
- },
- {
- MethodName: "C2List",
- Handler: _VehicleStyle_C2List_Handler,
- },
- {
- MethodName: "UpdateStyleItem",
- Handler: _VehicleStyle_UpdateStyleItem_Handler,
- },
- {
- MethodName: "DeleteMaintainace",
- Handler: _VehicleStyle_DeleteMaintainace_Handler,
- },
- {
- MethodName: "ExportStyle",
- Handler: _VehicleStyle_ExportStyle_Handler,
- },
- {
- MethodName: "ExportStyleTaskList",
- Handler: _VehicleStyle_ExportStyleTaskList_Handler,
- },
- {
- MethodName: "DeleteExportStyleTask",
- Handler: _VehicleStyle_DeleteExportStyleTask_Handler,
- },
- {
- MethodName: "Query",
- Handler: _VehicleStyle_Query_Handler,
- },
- {
- MethodName: "DeleteStyleItem",
- Handler: _VehicleStyle_DeleteStyleItem_Handler,
- },
- {
- MethodName: "TemplateList",
- Handler: _VehicleStyle_TemplateList_Handler,
- },
- {
- MethodName: "TemplateDetailList",
- Handler: _VehicleStyle_TemplateDetailList_Handler,
- },
- {
- MethodName: "TemplateDetail",
- Handler: _VehicleStyle_TemplateDetail_Handler,
- },
- {
- MethodName: "AddTemplateDetail",
- Handler: _VehicleStyle_AddTemplateDetail_Handler,
- },
- {
- MethodName: "UpdateTemplateDetail",
- Handler: _VehicleStyle_UpdateTemplateDetail_Handler,
- },
- {
- MethodName: "ChooseTemplateDetail",
- Handler: _VehicleStyle_ChooseTemplateDetail_Handler,
- },
- {
- MethodName: "TemplateItemList",
- Handler: _VehicleStyle_TemplateItemList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "adm_vehicle_style.proto",
- }
|