|
|
@@ -53,6 +53,8 @@ const (
|
|
|
|
|
|
//商品
|
|
|
GetProductPackagetByPId = "product_model.GetPackageList"
|
|
|
+ GetProductByPId = "product_model.GetProductById"
|
|
|
+
|
|
|
//项目
|
|
|
GetProjectById = "project_model.GetProjectById"
|
|
|
//默认签章
|
|
|
@@ -114,6 +116,8 @@ func GetKey(key string, params ...interface{}) string {
|
|
|
cacheKey = fmt.Sprintf("%s.uId(%d)", key, params[0])
|
|
|
case GetProductPackagetByPId:
|
|
|
cacheKey = fmt.Sprintf("%s.pId(%d)", key, params[0])
|
|
|
+ case GetProductByPId:
|
|
|
+ cacheKey = fmt.Sprintf("%s.pId(%d)", key, params[0])
|
|
|
|
|
|
}
|
|
|
|