123456789101112131415161718192021 |
- // Copyright 2019 getensh.com. All rights reserved.
- // Use of this source code is governed by getensh.com.
- package management
- import (
- "context"
- "gd_management/apis"
- "gd_management/errors"
- "github.com/astaxie/beego/orm"
- )
- func ManagementGetMerchantIds(ctx context.Context, req *apis.ManagementGetMerchantIdsReq, reply *apis.ManagementGetMerchantIdsReply) (err error) {
- o := orm.NewOrm()
- _, err = o.Raw("select id, merchant_name as name from t_gd_merchants").QueryRows(&reply.Infos)
- if err != nil {
- return errors.DataBaseError
- }
- return nil
- }
|