refactor(service): 重构用户服务数据库查询逻辑,将DBM调用封装为Model方法并添加GetModel注释
This commit is contained in:
@@ -420,6 +420,8 @@ func (s *Service) ModifyAfter(ctx context.Context, method string, param g.MapStr
|
||||
func (s *Service) GetModel() IModel {
|
||||
return s.Model
|
||||
}
|
||||
// GetModel 获取model
|
||||
|
||||
|
||||
// NewService 新建一个service
|
||||
func NewService(model IModel) *Service {
|
||||
|
||||
Reference in New Issue
Block a user