mohuishou / go-design-pattern

golang design pattern go 设计模式实现,包含 23 种常见的设计模式实现,同时这也是极客时间-设计模式之美 的笔记
https://lailin.xyz/post/go-design-pattern.html
2.04k stars 339 forks source link

fix: modify the implementation of facade #4

Closed clamyang closed 1 year ago

clamyang commented 2 years ago

1.fix IUserFacade interface, add return value 2.change login/register reciver from UserService to User, because the login logic belongs to user, not facade. the facede struct (class) only forwarding request. 3.add create object func 4.modify test file

mohuishou commented 1 year ago

Thanks for your contribution