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.

31 lines
824 B

2 months ago
package service
import (
"context"
"matchmaking-system/internal/pkg/flags"
"matchmaking-system/internal/service/backend"
v1 "matchmaking-system/api/matchmaking/v1/backend"
)
// SharePreTrade
//
// @Description: 新股申购下单-开盘服务(美股|泰股|印尼股|马股|印度股|新加坡|港股)
// @receiver s
// @param ctx
// @param req
// @return *v1.BotUsersNullRequest
// @return error
func (s *ConduitService) UpdateBotUsersByIsReal(ctx context.Context, req *v1.BotUsersNullRequest) (*v1.BotUsersReply, error) {
if !backend.VerificationRequest(req) {
return backend.BotUsersReply(false, flags.ErrIsParameter.Error()), nil
}
err := s.ba.UpdateBotUsersByIsReal(ctx)
if err != nil {
return backend.BotUsersReply(false, err.Error()), nil
}
return backend.BotUsersReply(true, flags.SetNull), nil
}