Browse Source

增加扣减库存方法

master v0.6.0
guzeng 3 years ago
parent
commit
6a2bc7a0f8
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      redis.pb.go
  2. +1
    -0
      redis.proto

+ 4
- 0
redis.pb.go View File

@ -495,6 +495,7 @@ type RedisService interface {
LRpush(in *LSetRequest, out *LSetResponse) error
LRange(in *LRangeRequest, out *HGetListResponse) error
LLen(in *LLenRequest, out *LSetResponse) error
ReduceStock(in *SetRequest, out *SetResponse) error
}
// AcceptRedisServiceClient accepts connections on the listener and serves requests
@ -620,6 +621,9 @@ func (c *RedisServiceClient) LRange(in *LRangeRequest, out *HGetListResponse) er
func (c *RedisServiceClient) LLen(in *LLenRequest, out *LSetResponse) error {
return c.Call("RedisService.LLen", in, out)
}
func (c *RedisServiceClient) ReduceStock(in *SetRequest, out *SetResponse) error {
return c.Call("RedisService.ReduceStock", in, out)
}
// DialRedisService connects to an RedisService at the specified network address.
func DialRedisService(network, addr string) (*RedisServiceClient, *rpc.Client, error) {


+ 1
- 0
redis.proto View File

@ -123,4 +123,5 @@ service RedisService {
rpc LRpush(LSetRequest) returns (LSetResponse); //
rpc LRange(LRangeRequest) returns (HGetListResponse); //
rpc LLen(LLenRequest) returns (LSetResponse); //
rpc ReduceStock(SetRequest) returns(SetResponse);//
}

Loading…
Cancel
Save