Helius
2021-06-28 cedf9aab0ee975b04c52c0a75749e1eba852db2c
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);
    }
}