docs: function userUpdate (args, user, type = 'create') {
    if (!this.attributes.includes('createdUsr') || !this.attributes.includes('updatedUsr')) {
      return args
    }
  
    if (_.isEmpty(user)) {
      throw new Error('未登录')
    } else {
      user = user.id || user
    }
  
    if (_.isArray(args)) {
      args.forEach(arg => {
        arg.updatedUsr = user
        if (type === 'create') {
          arg.createdUsr = user
        }
      })
    }
  
    if (_.isObject(args) && !_.isArray(args)) {
      args.updatedUsr = user
      if (type === 'create') {
        args.createdUsr = user
      }
    }
  
    return args
  }