You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
434 B
25 lines
434 B
package http |
|
|
|
import ( |
|
"go-common/library/log" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
func logByRpID(c *bm.Context) { |
|
var ( |
|
err error |
|
v = new(struct { |
|
RpID int64 `form:"rpid" validate:"required"` |
|
}) |
|
) |
|
if err = c.Bind(v); err != nil { |
|
return |
|
} |
|
list, err := rpSvc.LogsByRpID(c, v.RpID) |
|
if err != nil { |
|
log.Error("svc.ActionInfo(%+v) error(%v)", v, err) |
|
c.JSON(nil, err) |
|
return |
|
} |
|
c.JSON(list, nil) |
|
}
|
|
|