luodangjia
2025-01-16 0e1039395827eb8c2cbc4cf85e4ded5f993c9df4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.ruoyi.account.distributedservice;
 
import com.ruoyi.account.service.AppUserService;
import com.ruoyi.account.vo.LoginVo;
import com.ruoyi.account.vo.RegisterAccount;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.redis.annotation.DistributedLock;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
 
@Service
public class DistributedService {
    @Resource
    private AppUserService appUserService;
 
    @DistributedLock(lockNamePre = "#goods_lock", lockNamePost = "#phone")
    public R<LoginVo> registerAccount(RegisterAccount registerAccount, String phone){
        return appUserService.registerAccount(registerAccount);
    }
}