用户接口远程调用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

724 lines
21 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
  1. // Code generated by protoc-gen-go.
  2. // source: user.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package userrpc is a generated protocol buffer package.
  6. It is generated from these files:
  7. user.proto
  8. It has these top-level messages:
  9. UserRequest
  10. UserInfoByUsername
  11. UserInfoById
  12. UserInfoByUsercode
  13. UserResponse
  14. LoginRequest
  15. LoginResponse
  16. Request
  17. Response
  18. */
  19. package userrpc
  20. import proto "github.com/chai2010/protorpc/proto"
  21. import math "math"
  22. import "io"
  23. import "log"
  24. import "net"
  25. import "net/rpc"
  26. import "time"
  27. import protorpc "github.com/chai2010/protorpc"
  28. // Reference imports to suppress errors if they are not otherwise used.
  29. var _ = proto.Marshal
  30. var _ = math.Inf
  31. // 使用token查询用户信息请求结构
  32. type UserRequest struct {
  33. Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"`
  34. Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
  35. XXX_unrecognized []byte `json:"-"`
  36. }
  37. func (m *UserRequest) Reset() { *m = UserRequest{} }
  38. func (m *UserRequest) String() string { return proto.CompactTextString(m) }
  39. func (*UserRequest) ProtoMessage() {}
  40. func (m *UserRequest) GetDbname() string {
  41. if m != nil && m.Dbname != nil {
  42. return *m.Dbname
  43. }
  44. return ""
  45. }
  46. func (m *UserRequest) GetToken() string {
  47. if m != nil && m.Token != nil {
  48. return *m.Token
  49. }
  50. return ""
  51. }
  52. // 使用username查询用户信息请求结构
  53. type UserInfoByUsername struct {
  54. Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"`
  55. Username *string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
  56. XXX_unrecognized []byte `json:"-"`
  57. }
  58. func (m *UserInfoByUsername) Reset() { *m = UserInfoByUsername{} }
  59. func (m *UserInfoByUsername) String() string { return proto.CompactTextString(m) }
  60. func (*UserInfoByUsername) ProtoMessage() {}
  61. func (m *UserInfoByUsername) GetDbname() string {
  62. if m != nil && m.Dbname != nil {
  63. return *m.Dbname
  64. }
  65. return ""
  66. }
  67. func (m *UserInfoByUsername) GetUsername() string {
  68. if m != nil && m.Username != nil {
  69. return *m.Username
  70. }
  71. return ""
  72. }
  73. // 使用userid查询用户信息请求结构
  74. type UserInfoById struct {
  75. Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"`
  76. Userid *string `protobuf:"bytes,2,opt,name=userid" json:"userid,omitempty"`
  77. XXX_unrecognized []byte `json:"-"`
  78. }
  79. func (m *UserInfoById) Reset() { *m = UserInfoById{} }
  80. func (m *UserInfoById) String() string { return proto.CompactTextString(m) }
  81. func (*UserInfoById) ProtoMessage() {}
  82. func (m *UserInfoById) GetDbname() string {
  83. if m != nil && m.Dbname != nil {
  84. return *m.Dbname
  85. }
  86. return ""
  87. }
  88. func (m *UserInfoById) GetUserid() string {
  89. if m != nil && m.Userid != nil {
  90. return *m.Userid
  91. }
  92. return ""
  93. }
  94. // 使用usercode查询用户信息请求结构
  95. type UserInfoByUsercode struct {
  96. Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"`
  97. Usercode *string `protobuf:"bytes,2,opt,name=usercode" json:"usercode,omitempty"`
  98. XXX_unrecognized []byte `json:"-"`
  99. }
  100. func (m *UserInfoByUsercode) Reset() { *m = UserInfoByUsercode{} }
  101. func (m *UserInfoByUsercode) String() string { return proto.CompactTextString(m) }
  102. func (*UserInfoByUsercode) ProtoMessage() {}
  103. func (m *UserInfoByUsercode) GetDbname() string {
  104. if m != nil && m.Dbname != nil {
  105. return *m.Dbname
  106. }
  107. return ""
  108. }
  109. func (m *UserInfoByUsercode) GetUsercode() string {
  110. if m != nil && m.Usercode != nil {
  111. return *m.Usercode
  112. }
  113. return ""
  114. }
  115. // 使用token查询用户信息响应结构
  116. type UserResponse struct {
  117. UserId *string `protobuf:"bytes,1,opt,name=user_id" json:"user_id,omitempty"`
  118. Username *string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
  119. Nickname *string `protobuf:"bytes,3,opt,name=nickname" json:"nickname,omitempty"`
  120. Mobile *string `protobuf:"bytes,4,opt,name=mobile" json:"mobile,omitempty"`
  121. Email *string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"`
  122. Status *string `protobuf:"bytes,6,opt,name=status" json:"status,omitempty"`
  123. BusinessId *string `protobuf:"bytes,7,opt,name=business_id" json:"business_id,omitempty"`
  124. StoreId *string `protobuf:"bytes,8,opt,name=store_id" json:"store_id,omitempty"`
  125. FansTo *string `protobuf:"bytes,9,opt,name=fans_to" json:"fans_to,omitempty"`
  126. IsVip *string `protobuf:"bytes,10,opt,name=is_vip" json:"is_vip,omitempty"`
  127. Usercode *string `protobuf:"bytes,11,opt,name=usercode" json:"usercode,omitempty"`
  128. GroupId *string `protobuf:"bytes,12,opt,name=group_id" json:"group_id,omitempty"`
  129. Type *string `protobuf:"bytes,13,opt,name=type" json:"type,omitempty"`
  130. ThirdId *string `protobuf:"bytes,14,opt,name=third_id" json:"third_id,omitempty"`
  131. Platform *string `protobuf:"bytes,15,opt,name=platform" json:"platform,omitempty"`
  132. LockFans *string `protobuf:"bytes,16,opt,name=lock_fans" json:"lock_fans,omitempty"`
  133. CompanyId *string `protobuf:"bytes,17,opt,name=company_id" json:"company_id,omitempty"`
  134. DepartmentId *string `protobuf:"bytes,18,opt,name=department_id" json:"department_id,omitempty"`
  135. XXX_unrecognized []byte `json:"-"`
  136. }
  137. func (m *UserResponse) Reset() { *m = UserResponse{} }
  138. func (m *UserResponse) String() string { return proto.CompactTextString(m) }
  139. func (*UserResponse) ProtoMessage() {}
  140. func (m *UserResponse) GetUserId() string {
  141. if m != nil && m.UserId != nil {
  142. return *m.UserId
  143. }
  144. return ""
  145. }
  146. func (m *UserResponse) GetUsername() string {
  147. if m != nil && m.Username != nil {
  148. return *m.Username
  149. }
  150. return ""
  151. }
  152. func (m *UserResponse) GetNickname() string {
  153. if m != nil && m.Nickname != nil {
  154. return *m.Nickname
  155. }
  156. return ""
  157. }
  158. func (m *UserResponse) GetMobile() string {
  159. if m != nil && m.Mobile != nil {
  160. return *m.Mobile
  161. }
  162. return ""
  163. }
  164. func (m *UserResponse) GetEmail() string {
  165. if m != nil && m.Email != nil {
  166. return *m.Email
  167. }
  168. return ""
  169. }
  170. func (m *UserResponse) GetStatus() string {
  171. if m != nil && m.Status != nil {
  172. return *m.Status
  173. }
  174. return ""
  175. }
  176. func (m *UserResponse) GetBusinessId() string {
  177. if m != nil && m.BusinessId != nil {
  178. return *m.BusinessId
  179. }
  180. return ""
  181. }
  182. func (m *UserResponse) GetStoreId() string {
  183. if m != nil && m.StoreId != nil {
  184. return *m.StoreId
  185. }
  186. return ""
  187. }
  188. func (m *UserResponse) GetFansTo() string {
  189. if m != nil && m.FansTo != nil {
  190. return *m.FansTo
  191. }
  192. return ""
  193. }
  194. func (m *UserResponse) GetIsVip() string {
  195. if m != nil && m.IsVip != nil {
  196. return *m.IsVip
  197. }
  198. return ""
  199. }
  200. func (m *UserResponse) GetUsercode() string {
  201. if m != nil && m.Usercode != nil {
  202. return *m.Usercode
  203. }
  204. return ""
  205. }
  206. func (m *UserResponse) GetGroupId() string {
  207. if m != nil && m.GroupId != nil {
  208. return *m.GroupId
  209. }
  210. return ""
  211. }
  212. func (m *UserResponse) GetType() string {
  213. if m != nil && m.Type != nil {
  214. return *m.Type
  215. }
  216. return ""
  217. }
  218. func (m *UserResponse) GetThirdId() string {
  219. if m != nil && m.ThirdId != nil {
  220. return *m.ThirdId
  221. }
  222. return ""
  223. }
  224. func (m *UserResponse) GetPlatform() string {
  225. if m != nil && m.Platform != nil {
  226. return *m.Platform
  227. }
  228. return ""
  229. }
  230. func (m *UserResponse) GetLockFans() string {
  231. if m != nil && m.LockFans != nil {
  232. return *m.LockFans
  233. }
  234. return ""
  235. }
  236. func (m *UserResponse) GetCompanyId() string {
  237. if m != nil && m.CompanyId != nil {
  238. return *m.CompanyId
  239. }
  240. return ""
  241. }
  242. func (m *UserResponse) GetDepartmentId() string {
  243. if m != nil && m.DepartmentId != nil {
  244. return *m.DepartmentId
  245. }
  246. return ""
  247. }
  248. // 用户登录请求结构
  249. type LoginRequest struct {
  250. Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"`
  251. Account *string `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"`
  252. Password *string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
  253. XXX_unrecognized []byte `json:"-"`
  254. }
  255. func (m *LoginRequest) Reset() { *m = LoginRequest{} }
  256. func (m *LoginRequest) String() string { return proto.CompactTextString(m) }
  257. func (*LoginRequest) ProtoMessage() {}
  258. func (m *LoginRequest) GetDbname() string {
  259. if m != nil && m.Dbname != nil {
  260. return *m.Dbname
  261. }
  262. return ""
  263. }
  264. func (m *LoginRequest) GetAccount() string {
  265. if m != nil && m.Account != nil {
  266. return *m.Account
  267. }
  268. return ""
  269. }
  270. func (m *LoginRequest) GetPassword() string {
  271. if m != nil && m.Password != nil {
  272. return *m.Password
  273. }
  274. return ""
  275. }
  276. // 使用token查询用户信息响应结构
  277. type LoginResponse struct {
  278. UserId *string `protobuf:"bytes,1,opt,name=user_id" json:"user_id,omitempty"`
  279. Username *string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
  280. Nickname *string `protobuf:"bytes,3,opt,name=nickname" json:"nickname,omitempty"`
  281. Mobile *string `protobuf:"bytes,4,opt,name=mobile" json:"mobile,omitempty"`
  282. Email *string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"`
  283. Status *string `protobuf:"bytes,6,opt,name=status" json:"status,omitempty"`
  284. BusinessId *string `protobuf:"bytes,7,opt,name=business_id" json:"business_id,omitempty"`
  285. StoreId *string `protobuf:"bytes,8,opt,name=store_id" json:"store_id,omitempty"`
  286. FansTo *string `protobuf:"bytes,9,opt,name=fans_to" json:"fans_to,omitempty"`
  287. IsVip *string `protobuf:"bytes,10,opt,name=is_vip" json:"is_vip,omitempty"`
  288. Token *string `protobuf:"bytes,11,opt,name=token" json:"token,omitempty"`
  289. Usercode *string `protobuf:"bytes,12,opt,name=usercode" json:"usercode,omitempty"`
  290. GroupId *string `protobuf:"bytes,13,opt,name=group_id" json:"group_id,omitempty"`
  291. Type *string `protobuf:"bytes,14,opt,name=type" json:"type,omitempty"`
  292. ThirdId *string `protobuf:"bytes,15,opt,name=third_id" json:"third_id,omitempty"`
  293. Platform *string `protobuf:"bytes,16,opt,name=platform" json:"platform,omitempty"`
  294. XXX_unrecognized []byte `json:"-"`
  295. }
  296. func (m *LoginResponse) Reset() { *m = LoginResponse{} }
  297. func (m *LoginResponse) String() string { return proto.CompactTextString(m) }
  298. func (*LoginResponse) ProtoMessage() {}
  299. func (m *LoginResponse) GetUserId() string {
  300. if m != nil && m.UserId != nil {
  301. return *m.UserId
  302. }
  303. return ""
  304. }
  305. func (m *LoginResponse) GetUsername() string {
  306. if m != nil && m.Username != nil {
  307. return *m.Username
  308. }
  309. return ""
  310. }
  311. func (m *LoginResponse) GetNickname() string {
  312. if m != nil && m.Nickname != nil {
  313. return *m.Nickname
  314. }
  315. return ""
  316. }
  317. func (m *LoginResponse) GetMobile() string {
  318. if m != nil && m.Mobile != nil {
  319. return *m.Mobile
  320. }
  321. return ""
  322. }
  323. func (m *LoginResponse) GetEmail() string {
  324. if m != nil && m.Email != nil {
  325. return *m.Email
  326. }
  327. return ""
  328. }
  329. func (m *LoginResponse) GetStatus() string {
  330. if m != nil && m.Status != nil {
  331. return *m.Status
  332. }
  333. return ""
  334. }
  335. func (m *LoginResponse) GetBusinessId() string {
  336. if m != nil && m.BusinessId != nil {
  337. return *m.BusinessId
  338. }
  339. return ""
  340. }
  341. func (m *LoginResponse) GetStoreId() string {
  342. if m != nil && m.StoreId != nil {
  343. return *m.StoreId
  344. }
  345. return ""
  346. }
  347. func (m *LoginResponse) GetFansTo() string {
  348. if m != nil && m.FansTo != nil {
  349. return *m.FansTo
  350. }
  351. return ""
  352. }
  353. func (m *LoginResponse) GetIsVip() string {
  354. if m != nil && m.IsVip != nil {
  355. return *m.IsVip
  356. }
  357. return ""
  358. }
  359. func (m *LoginResponse) GetToken() string {
  360. if m != nil && m.Token != nil {
  361. return *m.Token
  362. }
  363. return ""
  364. }
  365. func (m *LoginResponse) GetUsercode() string {
  366. if m != nil && m.Usercode != nil {
  367. return *m.Usercode
  368. }
  369. return ""
  370. }
  371. func (m *LoginResponse) GetGroupId() string {
  372. if m != nil && m.GroupId != nil {
  373. return *m.GroupId
  374. }
  375. return ""
  376. }
  377. func (m *LoginResponse) GetType() string {
  378. if m != nil && m.Type != nil {
  379. return *m.Type
  380. }
  381. return ""
  382. }
  383. func (m *LoginResponse) GetThirdId() string {
  384. if m != nil && m.ThirdId != nil {
  385. return *m.ThirdId
  386. }
  387. return ""
  388. }
  389. func (m *LoginResponse) GetPlatform() string {
  390. if m != nil && m.Platform != nil {
  391. return *m.Platform
  392. }
  393. return ""
  394. }
  395. // 信息请求结构
  396. type Request struct {
  397. Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
  398. Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"`
  399. Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"`
  400. XXX_unrecognized []byte `json:"-"`
  401. }
  402. func (m *Request) Reset() { *m = Request{} }
  403. func (m *Request) String() string { return proto.CompactTextString(m) }
  404. func (*Request) ProtoMessage() {}
  405. func (m *Request) GetData() string {
  406. if m != nil && m.Data != nil {
  407. return *m.Data
  408. }
  409. return ""
  410. }
  411. func (m *Request) GetTime() string {
  412. if m != nil && m.Time != nil {
  413. return *m.Time
  414. }
  415. return ""
  416. }
  417. func (m *Request) GetSign() string {
  418. if m != nil && m.Sign != nil {
  419. return *m.Sign
  420. }
  421. return ""
  422. }
  423. // 信息响应结构
  424. type Response struct {
  425. Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
  426. Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"`
  427. Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"`
  428. XXX_unrecognized []byte `json:"-"`
  429. }
  430. func (m *Response) Reset() { *m = Response{} }
  431. func (m *Response) String() string { return proto.CompactTextString(m) }
  432. func (*Response) ProtoMessage() {}
  433. func (m *Response) GetData() string {
  434. if m != nil && m.Data != nil {
  435. return *m.Data
  436. }
  437. return ""
  438. }
  439. func (m *Response) GetTime() string {
  440. if m != nil && m.Time != nil {
  441. return *m.Time
  442. }
  443. return ""
  444. }
  445. func (m *Response) GetSign() string {
  446. if m != nil && m.Sign != nil {
  447. return *m.Sign
  448. }
  449. return ""
  450. }
  451. func init() {
  452. }
  453. type UserService interface {
  454. GetByToken(in *UserRequest, out *UserResponse) error
  455. Login(in *LoginRequest, out *LoginResponse) error
  456. GetByUsername(in *UserInfoByUsername, out *UserResponse) error
  457. GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error
  458. BindThird(in *Request, out *Response) error
  459. GetThird(in *Request, out *Response) error
  460. GetUserThird(in *Request, out *Response) error
  461. GetBusiness(in *Request, out *Response) error
  462. GetById(in *Request, out *Response) error
  463. UpdateUserCache(in *Request, out *Response) error
  464. GetBusinessInfo(in *Request, out *Response) error
  465. GetAddressInfo(in *Request, out *Response) error
  466. GetUserScore(in *Request, out *Response) error
  467. GetUserRedEnvelope(in *Request, out *Response) error
  468. AddUserScore(in *Request, out *Response) error
  469. UpdateUserScore(in *Request, out *Response) error
  470. AddUserScoreLog(in *Request, out *Response) error
  471. AddUserUpgrade(in *Request, out *Response) error
  472. UpdateUserUpgrade(in *Request, out *Response) error
  473. AddUserUpgradeLog(in *Request, out *Response) error
  474. AddUserRedEnvelope(in *Request, out *Response) error
  475. UpdateUserRedEnvelope(in *Request, out *Response) error
  476. AddUserRedEnvelopeLog(in *Request, out *Response) error
  477. AddUserCoupon(in *Request, out *Response) error
  478. UpdateUserCoupon(in *Request, out *Response) error
  479. Fans(in *Request, out *Response) error
  480. }
  481. // AcceptUserServiceClient accepts connections on the listener and serves requests
  482. // for each incoming connection. Accept blocks; the caller typically
  483. // invokes it in a go statement.
  484. func AcceptUserServiceClient(lis net.Listener, x UserService) {
  485. srv := rpc.NewServer()
  486. if err := srv.RegisterName("UserService", x); err != nil {
  487. log.Fatal(err)
  488. }
  489. for {
  490. conn, err := lis.Accept()
  491. if err != nil {
  492. log.Fatalf("lis.Accept(): %v\n", err)
  493. }
  494. go srv.ServeCodec(protorpc.NewServerCodec(conn))
  495. }
  496. }
  497. // RegisterUserService publish the given UserService implementation on the server.
  498. func RegisterUserService(srv *rpc.Server, x UserService) error {
  499. if err := srv.RegisterName("UserService", x); err != nil {
  500. return err
  501. }
  502. return nil
  503. }
  504. // NewUserServiceServer returns a new UserService Server.
  505. func NewUserServiceServer(x UserService) *rpc.Server {
  506. srv := rpc.NewServer()
  507. if err := srv.RegisterName("UserService", x); err != nil {
  508. log.Fatal(err)
  509. }
  510. return srv
  511. }
  512. // ListenAndServeUserService listen announces on the local network address laddr
  513. // and serves the given UserService implementation.
  514. func ListenAndServeUserService(network, addr string, x UserService) error {
  515. lis, err := net.Listen(network, addr)
  516. if err != nil {
  517. return err
  518. }
  519. defer lis.Close()
  520. srv := rpc.NewServer()
  521. if err := srv.RegisterName("UserService", x); err != nil {
  522. return err
  523. }
  524. for {
  525. conn, err := lis.Accept()
  526. if err != nil {
  527. log.Fatalf("lis.Accept(): %v\n", err)
  528. }
  529. go srv.ServeCodec(protorpc.NewServerCodec(conn))
  530. }
  531. }
  532. type UserServiceClient struct {
  533. *rpc.Client
  534. }
  535. // NewUserServiceClient returns a UserService rpc.Client and stub to handle
  536. // requests to the set of UserService at the other end of the connection.
  537. func NewUserServiceClient(conn io.ReadWriteCloser) (*UserServiceClient, *rpc.Client) {
  538. c := rpc.NewClientWithCodec(protorpc.NewClientCodec(conn))
  539. return &UserServiceClient{c}, c
  540. }
  541. func (c *UserServiceClient) GetByToken(in *UserRequest, out *UserResponse) error {
  542. return c.Call("UserService.GetByToken", in, out)
  543. }
  544. func (c *UserServiceClient) Login(in *LoginRequest, out *LoginResponse) error {
  545. return c.Call("UserService.Login", in, out)
  546. }
  547. func (c *UserServiceClient) GetByUsername(in *UserInfoByUsername, out *UserResponse) error {
  548. return c.Call("UserService.GetByUsername", in, out)
  549. }
  550. func (c *UserServiceClient) GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error {
  551. return c.Call("UserService.GetByUsercode", in, out)
  552. }
  553. func (c *UserServiceClient) BindThird(in *Request, out *Response) error {
  554. return c.Call("UserService.BindThird", in, out)
  555. }
  556. func (c *UserServiceClient) GetThird(in *Request, out *Response) error {
  557. return c.Call("UserService.GetThird", in, out)
  558. }
  559. func (c *UserServiceClient) GetUserThird(in *Request, out *Response) error {
  560. return c.Call("UserService.GetUserThird", in, out)
  561. }
  562. func (c *UserServiceClient) GetBusiness(in *Request, out *Response) error {
  563. return c.Call("UserService.GetBusiness", in, out)
  564. }
  565. func (c *UserServiceClient) GetById(in *Request, out *Response) error {
  566. return c.Call("UserService.GetById", in, out)
  567. }
  568. func (c *UserServiceClient) UpdateUserCache(in *Request, out *Response) error {
  569. return c.Call("UserService.UpdateUserCache", in, out)
  570. }
  571. func (c *UserServiceClient) GetBusinessInfo(in *Request, out *Response) error {
  572. return c.Call("UserService.GetBusinessInfo", in, out)
  573. }
  574. func (c *UserServiceClient) GetAddressInfo(in *Request, out *Response) error {
  575. return c.Call("UserService.GetAddressInfo", in, out)
  576. }
  577. func (c *UserServiceClient) GetUserScore(in *Request, out *Response) error {
  578. return c.Call("UserService.GetUserScore", in, out)
  579. }
  580. func (c *UserServiceClient) GetUserRedEnvelope(in *Request, out *Response) error {
  581. return c.Call("UserService.GetUserRedEnvelope", in, out)
  582. }
  583. func (c *UserServiceClient) AddUserScore(in *Request, out *Response) error {
  584. return c.Call("UserService.AddUserScore", in, out)
  585. }
  586. func (c *UserServiceClient) UpdateUserScore(in *Request, out *Response) error {
  587. return c.Call("UserService.UpdateUserScore", in, out)
  588. }
  589. func (c *UserServiceClient) AddUserScoreLog(in *Request, out *Response) error {
  590. return c.Call("UserService.AddUserScoreLog", in, out)
  591. }
  592. func (c *UserServiceClient) AddUserUpgrade(in *Request, out *Response) error {
  593. return c.Call("UserService.AddUserUpgrade", in, out)
  594. }
  595. func (c *UserServiceClient) UpdateUserUpgrade(in *Request, out *Response) error {
  596. return c.Call("UserService.UpdateUserUpgrade", in, out)
  597. }
  598. func (c *UserServiceClient) AddUserUpgradeLog(in *Request, out *Response) error {
  599. return c.Call("UserService.AddUserUpgradeLog", in, out)
  600. }
  601. func (c *UserServiceClient) AddUserRedEnvelope(in *Request, out *Response) error {
  602. return c.Call("UserService.AddUserRedEnvelope", in, out)
  603. }
  604. func (c *UserServiceClient) UpdateUserRedEnvelope(in *Request, out *Response) error {
  605. return c.Call("UserService.UpdateUserRedEnvelope", in, out)
  606. }
  607. func (c *UserServiceClient) AddUserRedEnvelopeLog(in *Request, out *Response) error {
  608. return c.Call("UserService.AddUserRedEnvelopeLog", in, out)
  609. }
  610. func (c *UserServiceClient) AddUserCoupon(in *Request, out *Response) error {
  611. return c.Call("UserService.AddUserCoupon", in, out)
  612. }
  613. func (c *UserServiceClient) UpdateUserCoupon(in *Request, out *Response) error {
  614. return c.Call("UserService.UpdateUserCoupon", in, out)
  615. }
  616. func (c *UserServiceClient) Fans(in *Request, out *Response) error {
  617. return c.Call("UserService.Fans", in, out)
  618. }
  619. // DialUserService connects to an UserService at the specified network address.
  620. func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) {
  621. c, err := protorpc.Dial(network, addr)
  622. if err != nil {
  623. return nil, nil, err
  624. }
  625. return &UserServiceClient{c}, c, nil
  626. }
  627. // DialUserServiceTimeout connects to an UserService at the specified network address.
  628. func DialUserServiceTimeout(network, addr string,
  629. timeout time.Duration) (*UserServiceClient, *rpc.Client, error) {
  630. c, err := protorpc.DialTimeout(network, addr, timeout)
  631. if err != nil {
  632. return nil, nil, err
  633. }
  634. return &UserServiceClient{c}, c, nil
  635. }