DDD - Conditional business rules without a domain service

前端 未结 0 327
抹茶落季
抹茶落季 2021-01-29 14:52

Suppose you have a simple aggregate root like this:

Playlist {
  String name
  List songs

  add(Song song) {
    // Some business rules

    songs.ad         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题