|
|
@ -153,6 +153,8 @@ type UserResponse struct { |
|
|
|
ThirdId *string `protobuf:"bytes,14,opt,name=third_id" json:"third_id,omitempty"` |
|
|
|
Platform *string `protobuf:"bytes,15,opt,name=platform" json:"platform,omitempty"` |
|
|
|
LockFans *string `protobuf:"bytes,16,opt,name=lock_fans" json:"lock_fans,omitempty"` |
|
|
|
CompanyId *string `protobuf:"bytes,17,opt,name=company_id" json:"company_id,omitempty"` |
|
|
|
DepartmentId *string `protobuf:"bytes,18,opt,name=department_id" json:"department_id,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
@ -272,6 +274,20 @@ func (m *UserResponse) GetLockFans() string { |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *UserResponse) GetCompanyId() string { |
|
|
|
if m != nil && m.CompanyId != nil { |
|
|
|
return *m.CompanyId |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *UserResponse) GetDepartmentId() string { |
|
|
|
if m != nil && m.DepartmentId != nil { |
|
|
|
return *m.DepartmentId |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
// 用户登录请求结构
|
|
|
|
type LoginRequest struct { |
|
|
|
Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` |
|
|
@ -521,6 +537,7 @@ type UserService interface { |
|
|
|
GetUserThird(in *Request, out *Response) error |
|
|
|
GetBusiness(in *Request, out *Response) error |
|
|
|
GetById(in *Request, out *Response) error |
|
|
|
UpdateUserCache(in *Request, out *Response) error |
|
|
|
GetBusinessInfo(in *Request, out *Response) error |
|
|
|
GetAddressInfo(in *Request, out *Response) error |
|
|
|
GetUserScore(in *Request, out *Response) error |
|
|
@ -536,6 +553,7 @@ type UserService interface { |
|
|
|
AddUserRedEnvelopeLog(in *Request, out *Response) error |
|
|
|
AddUserCoupon(in *Request, out *Response) error |
|
|
|
UpdateUserCoupon(in *Request, out *Response) error |
|
|
|
Fans(in *Request, out *Response) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptUserServiceClient accepts connections on the listener and serves requests
|
|
|
@ -634,6 +652,9 @@ func (c *UserServiceClient) GetBusiness(in *Request, out *Response) error { |
|
|
|
func (c *UserServiceClient) GetById(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.GetById", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) UpdateUserCache(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.UpdateUserCache", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) GetBusinessInfo(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.GetBusinessInfo", in, out) |
|
|
|
} |
|
|
@ -679,6 +700,9 @@ func (c *UserServiceClient) AddUserCoupon(in *Request, out *Response) error { |
|
|
|
func (c *UserServiceClient) UpdateUserCoupon(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.UpdateUserCoupon", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) Fans(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.Fans", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialUserService connects to an UserService at the specified network address.
|
|
|
|
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) { |
|
|
|