12 lines
244 B
Go
12 lines
244 B
Go
|
package repository
|
||
|
|
||
|
import (
|
||
|
"dddexample/pkg/domain/entity"
|
||
|
)
|
||
|
|
||
|
type UserRepository interface {
|
||
|
SelectByID(id int) *entity.AccountEntity
|
||
|
SelectByAccountNumber(account string) *entity.AccountEntity
|
||
|
UpdateAccountMoney(*entity.AccountEntity)
|
||
|
}
|