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.
22 lines
406 B
22 lines
406 B
package http |
|
|
|
import ( |
|
pb "go-common/app/service/main/sms/api" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
func send(ctx *bm.Context) { |
|
req := new(pb.SendReq) |
|
if err := ctx.Bind(req); err != nil { |
|
return |
|
} |
|
ctx.JSON(smsSvc.Send(ctx, req)) |
|
} |
|
|
|
func sendBatch(ctx *bm.Context) { |
|
req := new(pb.SendBatchReq) |
|
if err := ctx.Bind(req); err != nil { |
|
return |
|
} |
|
ctx.JSON(smsSvc.SendBatch(ctx, req)) |
|
}
|
|
|