123456789101112131415161718 |
- package com.mooctest.crowd.domain.domainservice;
- import com.mooctest.crowd.domain.command.RegisterCommand;
- import com.mooctest.crowd.domain.domainobject.Account;
- import com.mooctest.crowd.domain.factory.AccountFactory;
- /**
- * @Author: xuexb
- * @Date: 2019.7.5 14:05
- */
- public class RegisterDService {
- public static Account register(RegisterCommand cmd) {
- Account account = AccountFactory.createAccount();
- account.setMobileNum(cmd.getMobileNum());
- return account;
- }
- }
|