xiaoyong931011
2021-07-07 46dc84c9fb9aa7a53ff1c2479de66275115b0b87
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);
    }
}