public async Task <Resp> SendCode([FromBody] PortalLoginBaseReq req) { var checkRes = CheckNameType(req.name, req.type); if (!checkRes.IsSuccess()) { return(checkRes); } return(await service.SendCode(req.name, req.type)); }