Helius
2021-06-30 02b38bb7c08d68fffc6af25e4ba00a456d96e94e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.xzx.gc.service;
 
import com.xzx.gc.model.comon.account.AllAcountParamDto;
 
/**
 * 策略模式
 */
public class AccountContext {
 
    private  BaseAccountService baseAccountService;
 
    public AccountContext(BaseAccountService baseAccountService) {
        this.baseAccountService = baseAccountService;
    }
 
    public  Object account(AllAcountParamDto allAcountParamDto){
        return baseAccountService.account(allAcountParamDto);
    }
}