| 5432 |
amar.kumar |
1 |
package in.shop2020.user.persistence;
|
|
|
2 |
|
|
|
3 |
import java.util.List;
|
|
|
4 |
|
|
|
5 |
import in.shop2020.user.domain.Affiliate;
|
|
|
6 |
import in.shop2020.user.domain.MasterAffiliate;
|
|
|
7 |
|
|
|
8 |
public interface AffiliateMapper {
|
|
|
9 |
|
|
|
10 |
Affiliate getAffiliateById(long id);
|
|
|
11 |
|
|
|
12 |
Affiliate getAffiliateByName(String name);
|
|
|
13 |
|
|
|
14 |
MasterAffiliate getMasterAffiliateById(long id);
|
|
|
15 |
|
|
|
16 |
MasterAffiliate getMasterAffiliateByName(String name);
|
|
|
17 |
|
|
|
18 |
void createMasterAffiliate(MasterAffiliate masterAffiliate);
|
|
|
19 |
|
|
|
20 |
List<MasterAffiliate> getAllMasterAffiliates();
|
|
|
21 |
|
|
|
22 |
void createAffiliate(Affiliate affiliate);
|
|
|
23 |
|
|
|
24 |
List<Affiliate> getAffiliatesByMasterAffiliate(long masterAffiliateId);
|
|
|
25 |
}
|