Ejemplo n.º 1
0
        public async Task <PortalTokenResp> CodeReg([FromBody] PortalPasscodeReq req)
        {
            var stateRes = CheckLoginModelState(req);

            if (!stateRes.IsSuccess())
            {
                return(new PortalTokenResp().WithResp(stateRes)); //stateRes.ConvertToResultInherit<PortalTokenResp>();
            }
            return(await service.CodeReg(req.name, req.code, req.type, req.is_from_bind));
        }