package com.storlead.sms.controller;//package com.storlead.sms.controller;
//
//import cn.hutool.core.util.StrUtil;
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.storlead.frame.core.assemble.Result;
//import com.storlead.sms.service.SmsLogService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
///**
// * @program: sp-cloud
// * @description: 短信发送
// * @author: chenkq
// * @create: 2022-05-27 10:08
// */
//
//
//@Api(tags = "系统: 企业微信管理")
//@RestController
//@RequestMapping("/sys/sms")
//public class SmsLogApiController {
//
//    @Resource
//    private SmsLogService smsLogService;
//
//    @ApiOperation("获取AccessToken")
//    @PostMapping("/sendLoginVerifyCode")
//    public Result sendLoginVerifyCode(String mobile) {
//        if (StrUtil.isBlank(mobile)) {
//            return Result.error("参数错误");
//        }
//        //UserEn userAccount = userAccountService.getOne(new LambdaQueryWrapper<UserAccount>().eq(UserAccount::getAccount,mobile));
////      if (userAccount == null) {
////          return Result.error("手机号错误,该手机号用户不存在");
////      }
//        try {
//            return  smsLogService.sendLoginSmsCode(mobile);
//        }catch (Exception e) {
//            return  Result.error(e.getMessage());
//        }
//    }
//}
