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.
27 lines
546 B
27 lines
546 B
package http |
|
|
|
import ( |
|
http "go-common/app/interface/bbq/app-bbq/api/http/v1" |
|
bm "go-common/library/net/http/blademaster" |
|
|
|
"github.com/pkg/errors" |
|
) |
|
|
|
func locationAll(c *bm.Context) { |
|
arg := new(http.LocationRequest) |
|
if err := c.Bind(arg); err != nil { |
|
errors.Wrap(err, "参数验证失败") |
|
return |
|
} |
|
|
|
c.JSON(srv.GetLocaitonAll(c, arg)) |
|
} |
|
|
|
func location(c *bm.Context) { |
|
arg := new(http.LocationRequest) |
|
if err := c.Bind(arg); err != nil { |
|
errors.Wrap(err, "参数验证失败") |
|
return |
|
} |
|
c.JSON(srv.GetLocationChild(c, arg)) |
|
}
|
|
|