Table of content



The CustomerGroup entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: CustomerGroup

Data Schema: Shop

Master Service: CountryService


Dataflow of entity of CustomerGroup

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CreationDateLONGCustomerGroup
DescriptionSTRINGCustomerGroup
GroupNameSTRINGCustomerGroup
PrimaryKeyLONGCustomerGroup
ServerReplicationVersionLONGCustomerGroup
ShopOwnerLONGCustomerGroup

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/customergroupmember/customergroup/{id}GETfindAllCustomerGroupMemberOfCustomerGroup(id)CountryServiceCustomerGroup CustomerGroupMember
/customergroup/{id}GETfindCustomerGroupById(id)CountryServiceCustomerGroup
/customergroupPOSTinsertCustomerGroup(customergroup)CountryServiceCustomerGroup
/discountcampaigncustomergroup/customergroup/{id}GETfindAllDiscountCampaignCustomerGroupOfCustomerGroup(id)DiscountCampaignServiceCustomerGroup DiscountCampaignCustomerGroup
/customergroup/{id}DELETEdeleteCustomerGroupById(id)CountryServiceCustomerGroup
/customergroupGETfindAllCustomerGroup()CountryServiceCustomerGroup
/customergroup/{id}PUTupdateCustomerGroupById(customergroup)CountryServiceCustomerGroup

Distributed transaction of <CustomerGroup>

Pseudo code snippet

final CustomerGroup customergroup = (CustomerGroup) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customergroup/" + id, CustomerGroup.class);
if (customergroup != null) {
}
return customergroup;


Table of content