| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- package im
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- // ApiClient is the client API for Api service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
- type ApiClient interface {
- GenVerifyImage(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error)
- GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
- SignUpPhone(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
- SignInUserCode(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
- SignInWithPhonePassword(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
- // 检查token有效性
- SubSessionCheck(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*SessionCheckReply, error)
- // session添加KV对
- SubSessionSetValue(ctx context.Context, in *SubSessionSetValueRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // session获取KV对
- SubSessionGetValue(ctx context.Context, in *SubSessionGetValueRequest, opts ...grpc.CallOption) (*SubSessionGetValueReply, error)
- // 检查token所属用户是否拥有调用service权限
- SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error)
- // 登出传入token
- SubSignOut(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*DefaultReply, error)
- // 批量保存service
- SubServiceSaveList(ctx context.Context, in *SaveServiceListRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 用户列表
- UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListReply, error)
- // 单个用户信息详情
- UserGetInfo(ctx context.Context, in *UserGetInfoRequest, opts ...grpc.CallOption) (*UserInfo, error)
- // 用户添加多个角色
- UserAddRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 用户移除多个角色
- UserRemoveRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 用户获取栏目列表
- UserGetColumnList(ctx context.Context, in *UserGetColumnListRequest, opts ...grpc.CallOption) (*UserGetColumnListReply, error)
- // 创建角色
- RoleCreate(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 角色列表
- RoleList(ctx context.Context, in *RoleListRequest, opts ...grpc.CallOption) (*RoleListReply, error)
- // 角色编辑
- RoleEdit(ctx context.Context, in *Role, opts ...grpc.CallOption) (*DefaultReply, error)
- // 角色添加多个service权限
- RoleAddPermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 角色移除多个service权限
- RoleRemovePermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // service权限列表
- ServiceList(ctx context.Context, in *ServiceListRequest, opts ...grpc.CallOption) (*ServiceListReply, error)
- // 移除service
- ServiceRemoveList(ctx context.Context, in *ServiceRemoveRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 创建商户
- ShopCreate(ctx context.Context, in *CreateShopRequest, opts ...grpc.CallOption) (*CreateReply, error)
- // 商户列表
- ShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error)
- // 商户详情
- ShopDetail(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error)
- // 商户许可列表
- ShopLicenseList(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*LicenseList, error)
- // 商户添加用户
- ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 商户添加许可证
- ShopAddLicense(ctx context.Context, in *ShopAddLicenseRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 系统添加商户
- SystemAddShop(ctx context.Context, in *SystemAddShopRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 系统添加用户
- SystemAddUser(ctx context.Context, in *SystemAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- // 创建栏目
- ColumnCreate(ctx context.Context, in *ColumnCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
- // 创建许可
- LicenseCreate(ctx context.Context, in *LicenseCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
- // 许可类型字典
- LicenseTypeMap(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*LicenseTypeMapReply, error)
- // 许可证批量绑定栏目(之前绑定的会全部取消)
- LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- IMSystemCreate(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*TokenParam, error)
- IMSignOut(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*DefaultReply, error)
- IMSelfInfo(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*UserInfo, error)
- IMMessageRcv(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (Api_IMMessageRcvClient, error)
- }
- type apiClient struct {
- cc grpc.ClientConnInterface
- }
- func NewApiClient(cc grpc.ClientConnInterface) ApiClient {
- return &apiClient{cc}
- }
- func (c *apiClient) GenVerifyImage(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error) {
- out := new(GenVerifyImageReply)
- err := c.cc.Invoke(ctx, "/im.Api/GenVerifyImage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/GenPhoneVerifyCode", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/CheckVerifyCode", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error) {
- out := new(CreateReply)
- err := c.cc.Invoke(ctx, "/im.Api/SignUpUserCode", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SignUpPhone(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error) {
- out := new(CreateReply)
- err := c.cc.Invoke(ctx, "/im.Api/SignUpPhone", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SignInUserCode(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error) {
- out := new(SignInReply)
- err := c.cc.Invoke(ctx, "/im.Api/SignInUserCode", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SignInWithPhonePassword(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error) {
- out := new(SignInReply)
- err := c.cc.Invoke(ctx, "/im.Api/SignInWithPhonePassword", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SubSessionCheck(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*SessionCheckReply, error) {
- out := new(SessionCheckReply)
- err := c.cc.Invoke(ctx, "/im.Api/SubSessionCheck", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SubSessionSetValue(ctx context.Context, in *SubSessionSetValueRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/SubSessionSetValue", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SubSessionGetValue(ctx context.Context, in *SubSessionGetValueRequest, opts ...grpc.CallOption) (*SubSessionGetValueReply, error) {
- out := new(SubSessionGetValueReply)
- err := c.cc.Invoke(ctx, "/im.Api/SubSessionGetValue", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error) {
- out := new(PermissionCheckReply)
- err := c.cc.Invoke(ctx, "/im.Api/SubPermissionListCheck", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SubSignOut(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/SubSignOut", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SubServiceSaveList(ctx context.Context, in *SaveServiceListRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/SubServiceSaveList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListReply, error) {
- out := new(UserListReply)
- err := c.cc.Invoke(ctx, "/im.Api/UserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) UserGetInfo(ctx context.Context, in *UserGetInfoRequest, opts ...grpc.CallOption) (*UserInfo, error) {
- out := new(UserInfo)
- err := c.cc.Invoke(ctx, "/im.Api/UserGetInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) UserAddRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/UserAddRoles", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) UserRemoveRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/UserRemoveRoles", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) UserGetColumnList(ctx context.Context, in *UserGetColumnListRequest, opts ...grpc.CallOption) (*UserGetColumnListReply, error) {
- out := new(UserGetColumnListReply)
- err := c.cc.Invoke(ctx, "/im.Api/UserGetColumnList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) RoleCreate(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/RoleCreate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) RoleList(ctx context.Context, in *RoleListRequest, opts ...grpc.CallOption) (*RoleListReply, error) {
- out := new(RoleListReply)
- err := c.cc.Invoke(ctx, "/im.Api/RoleList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) RoleEdit(ctx context.Context, in *Role, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/RoleEdit", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) RoleAddPermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/RoleAddPermissions", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) RoleRemovePermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/RoleRemovePermissions", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ServiceList(ctx context.Context, in *ServiceListRequest, opts ...grpc.CallOption) (*ServiceListReply, error) {
- out := new(ServiceListReply)
- err := c.cc.Invoke(ctx, "/im.Api/ServiceList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ServiceRemoveList(ctx context.Context, in *ServiceRemoveRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/ServiceRemoveList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ShopCreate(ctx context.Context, in *CreateShopRequest, opts ...grpc.CallOption) (*CreateReply, error) {
- out := new(CreateReply)
- err := c.cc.Invoke(ctx, "/im.Api/ShopCreate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error) {
- out := new(ShopListReply)
- err := c.cc.Invoke(ctx, "/im.Api/ShopList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ShopDetail(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error) {
- out := new(ShopInfo)
- err := c.cc.Invoke(ctx, "/im.Api/ShopDetail", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ShopLicenseList(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*LicenseList, error) {
- out := new(LicenseList)
- err := c.cc.Invoke(ctx, "/im.Api/ShopLicenseList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/ShopAddUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ShopAddLicense(ctx context.Context, in *ShopAddLicenseRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/ShopAddLicense", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SystemAddShop(ctx context.Context, in *SystemAddShopRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/SystemAddShop", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) SystemAddUser(ctx context.Context, in *SystemAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/SystemAddUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) ColumnCreate(ctx context.Context, in *ColumnCreateRequest, opts ...grpc.CallOption) (*CreateReply, error) {
- out := new(CreateReply)
- err := c.cc.Invoke(ctx, "/im.Api/ColumnCreate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) LicenseCreate(ctx context.Context, in *LicenseCreateRequest, opts ...grpc.CallOption) (*CreateReply, error) {
- out := new(CreateReply)
- err := c.cc.Invoke(ctx, "/im.Api/LicenseCreate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) LicenseTypeMap(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*LicenseTypeMapReply, error) {
- out := new(LicenseTypeMapReply)
- err := c.cc.Invoke(ctx, "/im.Api/LicenseTypeMap", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/LicenseBindColumns", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) IMSystemCreate(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*TokenParam, error) {
- out := new(TokenParam)
- err := c.cc.Invoke(ctx, "/im.Api/IMSystemCreate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) IMSignOut(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
- out := new(DefaultReply)
- err := c.cc.Invoke(ctx, "/im.Api/IMSignOut", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) IMSelfInfo(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*UserInfo, error) {
- out := new(UserInfo)
- err := c.cc.Invoke(ctx, "/im.Api/IMSelfInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *apiClient) IMMessageRcv(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (Api_IMMessageRcvClient, error) {
- stream, err := c.cc.NewStream(ctx, &Api_ServiceDesc.Streams[0], "/im.Api/IMMessageRcv", opts...)
- if err != nil {
- return nil, err
- }
- x := &apiIMMessageRcvClient{stream}
- if err := x.ClientStream.SendMsg(in); err != nil {
- return nil, err
- }
- if err := x.ClientStream.CloseSend(); err != nil {
- return nil, err
- }
- return x, nil
- }
- type Api_IMMessageRcvClient interface {
- Recv() (*Message, error)
- grpc.ClientStream
- }
- type apiIMMessageRcvClient struct {
- grpc.ClientStream
- }
- func (x *apiIMMessageRcvClient) Recv() (*Message, error) {
- m := new(Message)
- if err := x.ClientStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
- }
- // ApiServer is the server API for Api service.
- // All implementations must embed UnimplementedApiServer
- // for forward compatibility
- type ApiServer interface {
- GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error)
- GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error)
- CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error)
- SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error)
- SignUpPhone(context.Context, *SignUpRequest) (*CreateReply, error)
- SignInUserCode(context.Context, *SignInPasswordRequest) (*SignInReply, error)
- SignInWithPhonePassword(context.Context, *SignInPasswordRequest) (*SignInReply, error)
- // 检查token有效性
- SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error)
- // session添加KV对
- SubSessionSetValue(context.Context, *SubSessionSetValueRequest) (*DefaultReply, error)
- // session获取KV对
- SubSessionGetValue(context.Context, *SubSessionGetValueRequest) (*SubSessionGetValueReply, error)
- // 检查token所属用户是否拥有调用service权限
- SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error)
- // 登出传入token
- SubSignOut(context.Context, *TokenParam) (*DefaultReply, error)
- // 批量保存service
- SubServiceSaveList(context.Context, *SaveServiceListRequest) (*DefaultReply, error)
- // 用户列表
- UserList(context.Context, *UserListRequest) (*UserListReply, error)
- // 单个用户信息详情
- UserGetInfo(context.Context, *UserGetInfoRequest) (*UserInfo, error)
- // 用户添加多个角色
- UserAddRoles(context.Context, *UserRolesRequest) (*DefaultReply, error)
- // 用户移除多个角色
- UserRemoveRoles(context.Context, *UserRolesRequest) (*DefaultReply, error)
- // 用户获取栏目列表
- UserGetColumnList(context.Context, *UserGetColumnListRequest) (*UserGetColumnListReply, error)
- // 创建角色
- RoleCreate(context.Context, *CreateRoleRequest) (*DefaultReply, error)
- // 角色列表
- RoleList(context.Context, *RoleListRequest) (*RoleListReply, error)
- // 角色编辑
- RoleEdit(context.Context, *Role) (*DefaultReply, error)
- // 角色添加多个service权限
- RoleAddPermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error)
- // 角色移除多个service权限
- RoleRemovePermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error)
- // service权限列表
- ServiceList(context.Context, *ServiceListRequest) (*ServiceListReply, error)
- // 移除service
- ServiceRemoveList(context.Context, *ServiceRemoveRequest) (*DefaultReply, error)
- // 创建商户
- ShopCreate(context.Context, *CreateShopRequest) (*CreateReply, error)
- // 商户列表
- ShopList(context.Context, *ShopListRequest) (*ShopListReply, error)
- // 商户详情
- ShopDetail(context.Context, *ShopDetailRequest) (*ShopInfo, error)
- // 商户许可列表
- ShopLicenseList(context.Context, *ShopDetailRequest) (*LicenseList, error)
- // 商户添加用户
- ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error)
- // 商户添加许可证
- ShopAddLicense(context.Context, *ShopAddLicenseRequest) (*DefaultReply, error)
- // 系统添加商户
- SystemAddShop(context.Context, *SystemAddShopRequest) (*DefaultReply, error)
- // 系统添加用户
- SystemAddUser(context.Context, *SystemAddUserRequest) (*DefaultReply, error)
- // 创建栏目
- ColumnCreate(context.Context, *ColumnCreateRequest) (*CreateReply, error)
- // 创建许可
- LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error)
- // 许可类型字典
- LicenseTypeMap(context.Context, *IdList) (*LicenseTypeMapReply, error)
- // 许可证批量绑定栏目(之前绑定的会全部取消)
- LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error)
- IMSystemCreate(context.Context, *CreateSystemRequest) (*TokenParam, error)
- IMSignOut(context.Context, *DefaultRequest) (*DefaultReply, error)
- IMSelfInfo(context.Context, *DefaultRequest) (*UserInfo, error)
- IMMessageRcv(*DefaultRequest, Api_IMMessageRcvServer) error
- mustEmbedUnimplementedApiServer()
- }
- // UnimplementedApiServer must be embedded to have forward compatible implementations.
- type UnimplementedApiServer struct {
- }
- func (UnimplementedApiServer) GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GenVerifyImage not implemented")
- }
- func (UnimplementedApiServer) GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GenPhoneVerifyCode not implemented")
- }
- func (UnimplementedApiServer) CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CheckVerifyCode not implemented")
- }
- func (UnimplementedApiServer) SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SignUpUserCode not implemented")
- }
- func (UnimplementedApiServer) SignUpPhone(context.Context, *SignUpRequest) (*CreateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SignUpPhone not implemented")
- }
- func (UnimplementedApiServer) SignInUserCode(context.Context, *SignInPasswordRequest) (*SignInReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SignInUserCode not implemented")
- }
- func (UnimplementedApiServer) SignInWithPhonePassword(context.Context, *SignInPasswordRequest) (*SignInReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SignInWithPhonePassword not implemented")
- }
- func (UnimplementedApiServer) SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubSessionCheck not implemented")
- }
- func (UnimplementedApiServer) SubSessionSetValue(context.Context, *SubSessionSetValueRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubSessionSetValue not implemented")
- }
- func (UnimplementedApiServer) SubSessionGetValue(context.Context, *SubSessionGetValueRequest) (*SubSessionGetValueReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubSessionGetValue not implemented")
- }
- func (UnimplementedApiServer) SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubPermissionListCheck not implemented")
- }
- func (UnimplementedApiServer) SubSignOut(context.Context, *TokenParam) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubSignOut not implemented")
- }
- func (UnimplementedApiServer) SubServiceSaveList(context.Context, *SaveServiceListRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubServiceSaveList not implemented")
- }
- func (UnimplementedApiServer) UserList(context.Context, *UserListRequest) (*UserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
- }
- func (UnimplementedApiServer) UserGetInfo(context.Context, *UserGetInfoRequest) (*UserInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserGetInfo not implemented")
- }
- func (UnimplementedApiServer) UserAddRoles(context.Context, *UserRolesRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserAddRoles not implemented")
- }
- func (UnimplementedApiServer) UserRemoveRoles(context.Context, *UserRolesRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserRemoveRoles not implemented")
- }
- func (UnimplementedApiServer) UserGetColumnList(context.Context, *UserGetColumnListRequest) (*UserGetColumnListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserGetColumnList not implemented")
- }
- func (UnimplementedApiServer) RoleCreate(context.Context, *CreateRoleRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RoleCreate not implemented")
- }
- func (UnimplementedApiServer) RoleList(context.Context, *RoleListRequest) (*RoleListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RoleList not implemented")
- }
- func (UnimplementedApiServer) RoleEdit(context.Context, *Role) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RoleEdit not implemented")
- }
- func (UnimplementedApiServer) RoleAddPermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RoleAddPermissions not implemented")
- }
- func (UnimplementedApiServer) RoleRemovePermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RoleRemovePermissions not implemented")
- }
- func (UnimplementedApiServer) ServiceList(context.Context, *ServiceListRequest) (*ServiceListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ServiceList not implemented")
- }
- func (UnimplementedApiServer) ServiceRemoveList(context.Context, *ServiceRemoveRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ServiceRemoveList not implemented")
- }
- func (UnimplementedApiServer) ShopCreate(context.Context, *CreateShopRequest) (*CreateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShopCreate not implemented")
- }
- func (UnimplementedApiServer) ShopList(context.Context, *ShopListRequest) (*ShopListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShopList not implemented")
- }
- func (UnimplementedApiServer) ShopDetail(context.Context, *ShopDetailRequest) (*ShopInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShopDetail not implemented")
- }
- func (UnimplementedApiServer) ShopLicenseList(context.Context, *ShopDetailRequest) (*LicenseList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShopLicenseList not implemented")
- }
- func (UnimplementedApiServer) ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShopAddUser not implemented")
- }
- func (UnimplementedApiServer) ShopAddLicense(context.Context, *ShopAddLicenseRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShopAddLicense not implemented")
- }
- func (UnimplementedApiServer) SystemAddShop(context.Context, *SystemAddShopRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemAddShop not implemented")
- }
- func (UnimplementedApiServer) SystemAddUser(context.Context, *SystemAddUserRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemAddUser not implemented")
- }
- func (UnimplementedApiServer) ColumnCreate(context.Context, *ColumnCreateRequest) (*CreateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ColumnCreate not implemented")
- }
- func (UnimplementedApiServer) LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LicenseCreate not implemented")
- }
- func (UnimplementedApiServer) LicenseTypeMap(context.Context, *IdList) (*LicenseTypeMapReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LicenseTypeMap not implemented")
- }
- func (UnimplementedApiServer) LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LicenseBindColumns not implemented")
- }
- func (UnimplementedApiServer) IMSystemCreate(context.Context, *CreateSystemRequest) (*TokenParam, error) {
- return nil, status.Errorf(codes.Unimplemented, "method IMSystemCreate not implemented")
- }
- func (UnimplementedApiServer) IMSignOut(context.Context, *DefaultRequest) (*DefaultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method IMSignOut not implemented")
- }
- func (UnimplementedApiServer) IMSelfInfo(context.Context, *DefaultRequest) (*UserInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method IMSelfInfo not implemented")
- }
- func (UnimplementedApiServer) IMMessageRcv(*DefaultRequest, Api_IMMessageRcvServer) error {
- return status.Errorf(codes.Unimplemented, "method IMMessageRcv not implemented")
- }
- func (UnimplementedApiServer) mustEmbedUnimplementedApiServer() {}
- // UnsafeApiServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to ApiServer will
- // result in compilation errors.
- type UnsafeApiServer interface {
- mustEmbedUnimplementedApiServer()
- }
- func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer) {
- s.RegisterService(&Api_ServiceDesc, srv)
- }
- func _Api_GenVerifyImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GenVerifyImageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).GenVerifyImage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/GenVerifyImage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).GenVerifyImage(ctx, req.(*GenVerifyImageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_GenPhoneVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GenPhoneVerifyCodeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).GenPhoneVerifyCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/GenPhoneVerifyCode",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).GenPhoneVerifyCode(ctx, req.(*GenPhoneVerifyCodeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_CheckVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CheckVerifyCodeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).CheckVerifyCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/CheckVerifyCode",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).CheckVerifyCode(ctx, req.(*CheckVerifyCodeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SignUpUserCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SignUpRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SignUpUserCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SignUpUserCode",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SignUpUserCode(ctx, req.(*SignUpRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SignUpPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SignUpRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SignUpPhone(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SignUpPhone",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SignUpPhone(ctx, req.(*SignUpRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SignInUserCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SignInPasswordRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SignInUserCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SignInUserCode",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SignInUserCode(ctx, req.(*SignInPasswordRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SignInWithPhonePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SignInPasswordRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SignInWithPhonePassword(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SignInWithPhonePassword",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SignInWithPhonePassword(ctx, req.(*SignInPasswordRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SubSessionCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(TokenParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SubSessionCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SubSessionCheck",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SubSessionCheck(ctx, req.(*TokenParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SubSessionSetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SubSessionSetValueRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SubSessionSetValue(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SubSessionSetValue",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SubSessionSetValue(ctx, req.(*SubSessionSetValueRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SubSessionGetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SubSessionGetValueRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SubSessionGetValue(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SubSessionGetValue",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SubSessionGetValue(ctx, req.(*SubSessionGetValueRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SubPermissionListCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PermissionCheck)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SubPermissionListCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SubPermissionListCheck",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SubPermissionListCheck(ctx, req.(*PermissionCheck))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SubSignOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(TokenParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SubSignOut(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SubSignOut",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SubSignOut(ctx, req.(*TokenParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SubServiceSaveList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SaveServiceListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SubServiceSaveList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SubServiceSaveList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SubServiceSaveList(ctx, req.(*SaveServiceListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).UserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/UserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).UserList(ctx, req.(*UserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_UserGetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserGetInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).UserGetInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/UserGetInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).UserGetInfo(ctx, req.(*UserGetInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_UserAddRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRolesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).UserAddRoles(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/UserAddRoles",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).UserAddRoles(ctx, req.(*UserRolesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_UserRemoveRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRolesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).UserRemoveRoles(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/UserRemoveRoles",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).UserRemoveRoles(ctx, req.(*UserRolesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_UserGetColumnList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserGetColumnListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).UserGetColumnList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/UserGetColumnList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).UserGetColumnList(ctx, req.(*UserGetColumnListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_RoleCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateRoleRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).RoleCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/RoleCreate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).RoleCreate(ctx, req.(*CreateRoleRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RoleListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).RoleList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/RoleList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).RoleList(ctx, req.(*RoleListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_RoleEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Role)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).RoleEdit(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/RoleEdit",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).RoleEdit(ctx, req.(*Role))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_RoleAddPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RolePermissionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).RoleAddPermissions(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/RoleAddPermissions",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).RoleAddPermissions(ctx, req.(*RolePermissionRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_RoleRemovePermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RolePermissionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).RoleRemovePermissions(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/RoleRemovePermissions",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).RoleRemovePermissions(ctx, req.(*RolePermissionRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ServiceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ServiceListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ServiceList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ServiceList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ServiceList(ctx, req.(*ServiceListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ServiceRemoveList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ServiceRemoveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ServiceRemoveList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ServiceRemoveList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ServiceRemoveList(ctx, req.(*ServiceRemoveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ShopCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateShopRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ShopCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ShopCreate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ShopCreate(ctx, req.(*CreateShopRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ShopList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ShopListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ShopList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ShopList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ShopList(ctx, req.(*ShopListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ShopDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ShopDetailRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ShopDetail(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ShopDetail",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ShopDetail(ctx, req.(*ShopDetailRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ShopLicenseList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ShopDetailRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ShopLicenseList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ShopLicenseList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ShopLicenseList(ctx, req.(*ShopDetailRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ShopAddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ShopAddUserRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ShopAddUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ShopAddUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ShopAddUser(ctx, req.(*ShopAddUserRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ShopAddLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ShopAddLicenseRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ShopAddLicense(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ShopAddLicense",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ShopAddLicense(ctx, req.(*ShopAddLicenseRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SystemAddShop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SystemAddShopRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SystemAddShop(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SystemAddShop",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SystemAddShop(ctx, req.(*SystemAddShopRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_SystemAddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SystemAddUserRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).SystemAddUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/SystemAddUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).SystemAddUser(ctx, req.(*SystemAddUserRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_ColumnCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ColumnCreateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).ColumnCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/ColumnCreate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).ColumnCreate(ctx, req.(*ColumnCreateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_LicenseCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LicenseCreateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).LicenseCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/LicenseCreate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).LicenseCreate(ctx, req.(*LicenseCreateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_LicenseTypeMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdList)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).LicenseTypeMap(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/LicenseTypeMap",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).LicenseTypeMap(ctx, req.(*IdList))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_LicenseBindColumns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LicenseBindColumnsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).LicenseBindColumns(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/LicenseBindColumns",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).LicenseBindColumns(ctx, req.(*LicenseBindColumnsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_IMSystemCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateSystemRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).IMSystemCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/IMSystemCreate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).IMSystemCreate(ctx, req.(*CreateSystemRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_IMSignOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DefaultRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).IMSignOut(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/IMSignOut",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).IMSignOut(ctx, req.(*DefaultRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_IMSelfInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DefaultRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ApiServer).IMSelfInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/im.Api/IMSelfInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ApiServer).IMSelfInfo(ctx, req.(*DefaultRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Api_IMMessageRcv_Handler(srv interface{}, stream grpc.ServerStream) error {
- m := new(DefaultRequest)
- if err := stream.RecvMsg(m); err != nil {
- return err
- }
- return srv.(ApiServer).IMMessageRcv(m, &apiIMMessageRcvServer{stream})
- }
- type Api_IMMessageRcvServer interface {
- Send(*Message) error
- grpc.ServerStream
- }
- type apiIMMessageRcvServer struct {
- grpc.ServerStream
- }
- func (x *apiIMMessageRcvServer) Send(m *Message) error {
- return x.ServerStream.SendMsg(m)
- }
- // Api_ServiceDesc is the grpc.ServiceDesc for Api service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var Api_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "im.Api",
- HandlerType: (*ApiServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GenVerifyImage",
- Handler: _Api_GenVerifyImage_Handler,
- },
- {
- MethodName: "GenPhoneVerifyCode",
- Handler: _Api_GenPhoneVerifyCode_Handler,
- },
- {
- MethodName: "CheckVerifyCode",
- Handler: _Api_CheckVerifyCode_Handler,
- },
- {
- MethodName: "SignUpUserCode",
- Handler: _Api_SignUpUserCode_Handler,
- },
- {
- MethodName: "SignUpPhone",
- Handler: _Api_SignUpPhone_Handler,
- },
- {
- MethodName: "SignInUserCode",
- Handler: _Api_SignInUserCode_Handler,
- },
- {
- MethodName: "SignInWithPhonePassword",
- Handler: _Api_SignInWithPhonePassword_Handler,
- },
- {
- MethodName: "SubSessionCheck",
- Handler: _Api_SubSessionCheck_Handler,
- },
- {
- MethodName: "SubSessionSetValue",
- Handler: _Api_SubSessionSetValue_Handler,
- },
- {
- MethodName: "SubSessionGetValue",
- Handler: _Api_SubSessionGetValue_Handler,
- },
- {
- MethodName: "SubPermissionListCheck",
- Handler: _Api_SubPermissionListCheck_Handler,
- },
- {
- MethodName: "SubSignOut",
- Handler: _Api_SubSignOut_Handler,
- },
- {
- MethodName: "SubServiceSaveList",
- Handler: _Api_SubServiceSaveList_Handler,
- },
- {
- MethodName: "UserList",
- Handler: _Api_UserList_Handler,
- },
- {
- MethodName: "UserGetInfo",
- Handler: _Api_UserGetInfo_Handler,
- },
- {
- MethodName: "UserAddRoles",
- Handler: _Api_UserAddRoles_Handler,
- },
- {
- MethodName: "UserRemoveRoles",
- Handler: _Api_UserRemoveRoles_Handler,
- },
- {
- MethodName: "UserGetColumnList",
- Handler: _Api_UserGetColumnList_Handler,
- },
- {
- MethodName: "RoleCreate",
- Handler: _Api_RoleCreate_Handler,
- },
- {
- MethodName: "RoleList",
- Handler: _Api_RoleList_Handler,
- },
- {
- MethodName: "RoleEdit",
- Handler: _Api_RoleEdit_Handler,
- },
- {
- MethodName: "RoleAddPermissions",
- Handler: _Api_RoleAddPermissions_Handler,
- },
- {
- MethodName: "RoleRemovePermissions",
- Handler: _Api_RoleRemovePermissions_Handler,
- },
- {
- MethodName: "ServiceList",
- Handler: _Api_ServiceList_Handler,
- },
- {
- MethodName: "ServiceRemoveList",
- Handler: _Api_ServiceRemoveList_Handler,
- },
- {
- MethodName: "ShopCreate",
- Handler: _Api_ShopCreate_Handler,
- },
- {
- MethodName: "ShopList",
- Handler: _Api_ShopList_Handler,
- },
- {
- MethodName: "ShopDetail",
- Handler: _Api_ShopDetail_Handler,
- },
- {
- MethodName: "ShopLicenseList",
- Handler: _Api_ShopLicenseList_Handler,
- },
- {
- MethodName: "ShopAddUser",
- Handler: _Api_ShopAddUser_Handler,
- },
- {
- MethodName: "ShopAddLicense",
- Handler: _Api_ShopAddLicense_Handler,
- },
- {
- MethodName: "SystemAddShop",
- Handler: _Api_SystemAddShop_Handler,
- },
- {
- MethodName: "SystemAddUser",
- Handler: _Api_SystemAddUser_Handler,
- },
- {
- MethodName: "ColumnCreate",
- Handler: _Api_ColumnCreate_Handler,
- },
- {
- MethodName: "LicenseCreate",
- Handler: _Api_LicenseCreate_Handler,
- },
- {
- MethodName: "LicenseTypeMap",
- Handler: _Api_LicenseTypeMap_Handler,
- },
- {
- MethodName: "LicenseBindColumns",
- Handler: _Api_LicenseBindColumns_Handler,
- },
- {
- MethodName: "IMSystemCreate",
- Handler: _Api_IMSystemCreate_Handler,
- },
- {
- MethodName: "IMSignOut",
- Handler: _Api_IMSignOut_Handler,
- },
- {
- MethodName: "IMSelfInfo",
- Handler: _Api_IMSelfInfo_Handler,
- },
- },
- Streams: []grpc.StreamDesc{
- {
- StreamName: "IMMessageRcv",
- Handler: _Api_IMMessageRcv_Handler,
- ServerStreams: true,
- },
- },
- Metadata: "im.proto",
- }
|