12345678910111213141516171819 |
- // Copyright 2019 getensh.com. All rights reserved.
- // Use of this source code is governed by getensh.com.
- package base_api
- import (
- "context"
- "gd_management/apis"
- "gd_management/errors"
- "github.com/astaxie/beego/orm"
- )
- func ManagementGetApiTask(ctx context.Context, req *apis.ManagementGetApiTaskReq, reply *apis.ManagementGetApiTaskReply) error {
- o := orm.NewOrm()
- err := o.Raw("select * from t_gd_try_api_task where id=?", req.TaskId).QueryRow(&reply.Data)
- if err != nil {
- return errors.DataBaseError
- }
- return nil
- }
|