|
|
@ -12,7 +12,7 @@ import ( |
|
|
|
* 2021/08/20 |
|
|
|
* GZ |
|
|
|
*/ |
|
|
|
func GetSku(dbname, id string, url ...string) (map[string]string, error) { |
|
|
|
func GetSku(dbname, id string, field string, url ...string) (map[string]string, error) { |
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|
if err != nil { |
|
|
@ -20,7 +20,7 @@ func GetSku(dbname, id string, url ...string) (map[string]string, error) { |
|
|
|
} |
|
|
|
defer conn.Close() |
|
|
|
|
|
|
|
req := &GetRequest{proto.String(dbname), proto.String(id), nil} |
|
|
|
req := &GetRequest{proto.String(dbname), proto.String(id), proto.String(field), nil} |
|
|
|
|
|
|
|
res := &GetResponse{} |
|
|
|
|
|
|
@ -45,7 +45,7 @@ func GetSku(dbname, id string, url ...string) (map[string]string, error) { |
|
|
|
* 2021/08/20 |
|
|
|
* GZ |
|
|
|
*/ |
|
|
|
func GetSkuByUuid(dbname, uuid string, url ...string) (map[string]string, error) { |
|
|
|
func GetSkuByUuid(dbname, uuid string, field string, url ...string) (map[string]string, error) { |
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|
if err != nil { |
|
|
@ -53,7 +53,7 @@ func GetSkuByUuid(dbname, uuid string, url ...string) (map[string]string, error) |
|
|
|
} |
|
|
|
defer conn.Close() |
|
|
|
|
|
|
|
req := &GetUuidRequest{proto.String(dbname), proto.String(uuid), nil} |
|
|
|
req := &GetUuidRequest{proto.String(dbname), proto.String(uuid), proto.String(field), nil} |
|
|
|
|
|
|
|
res := &GetResponse{} |
|
|
|
|
|
|
|