| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625 |
- // 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.
- 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)
- }
- 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",
- }
|