|
@@ -38,9 +38,9 @@ func getProjectsList(c *gin.Context) {
|
|
|
winner := c.PostForm("winner")
|
|
|
bidTime := c.PostForm("bid_time")
|
|
|
p := gin.H{
|
|
|
- "projectName": projectName,
|
|
|
- "winner": winner,
|
|
|
- "bidTime": bidTime,
|
|
|
+ "project_name": projectName,
|
|
|
+ "winner": winner,
|
|
|
+ "bid_time": bidTime,
|
|
|
}
|
|
|
bs, _ := json.Marshal(p)
|
|
|
param := string(bs)
|
|
@@ -81,7 +81,7 @@ func getProjectDetail(c *gin.Context) {
|
|
|
_id := c.PostForm("project_id")
|
|
|
id := service.SE.DecodeString(_id)
|
|
|
p := gin.H{
|
|
|
- "id": id,
|
|
|
+ "project_id": _id,
|
|
|
}
|
|
|
bs, _ := json.Marshal(p)
|
|
|
param := string(bs)
|
|
@@ -107,11 +107,11 @@ func callLog(c *gin.Context) {
|
|
|
datas := []map[string]interface{}{}
|
|
|
var err error
|
|
|
p := gin.H{
|
|
|
- "appID": appID,
|
|
|
- "startTime": startTime,
|
|
|
- "endTime": endTime,
|
|
|
- "productId": productId,
|
|
|
- "isSelf": isSelf,
|
|
|
+ "app_id": appID,
|
|
|
+ "start_time": startTime,
|
|
|
+ "end_time": endTime,
|
|
|
+ "product_id": productId,
|
|
|
+ "isSelf": isSelf,
|
|
|
}
|
|
|
global.Logger.Info("api callLog:", zap.Any("param:", p))
|
|
|
datas, err = service.CallLog(appID, productId, startTime, endTime, isSelfs)
|
|
@@ -126,9 +126,7 @@ func biddingInfoList(c *gin.Context) {
|
|
|
productID := c.MustGet("productID").(int)
|
|
|
appID := c.MustGet("appID").(string)
|
|
|
requestIP := c.MustGet("requestIP").(string)
|
|
|
- p := gin.H{
|
|
|
-
|
|
|
- }
|
|
|
+ p := gin.H{}
|
|
|
bs, _ := json.Marshal(p)
|
|
|
param := string(bs)
|
|
|
utils.Check(appID, productID, c, func() ([]map[string]interface{}, int, error) {
|
|
@@ -140,9 +138,7 @@ func healthInfoList(c *gin.Context) {
|
|
|
productID := c.MustGet("productID").(int)
|
|
|
appID := c.MustGet("appID").(string)
|
|
|
requestIP := c.MustGet("requestIP").(string)
|
|
|
- p := gin.H{
|
|
|
-
|
|
|
- }
|
|
|
+ p := gin.H{}
|
|
|
bs, _ := json.Marshal(p)
|
|
|
param := string(bs)
|
|
|
utils.Check(appID, productID, c, func() ([]map[string]interface{}, int, error) {
|
|
@@ -154,9 +150,7 @@ func healthinfo(c *gin.Context) {
|
|
|
productID := c.MustGet("productID").(int)
|
|
|
appID := c.MustGet("appID").(string)
|
|
|
requestIP := c.MustGet("requestIP").(string)
|
|
|
- p := gin.H{
|
|
|
-
|
|
|
- }
|
|
|
+ p := gin.H{}
|
|
|
bs, _ := json.Marshal(p)
|
|
|
param := string(bs)
|
|
|
utils.Check(appID, productID, c, func() ([]map[string]interface{}, int, error) {
|