isUserShipFromSystem static method
是否为来源于系统级的用户关系
Implementation
static bool isUserShipFromSystem(UserShip ship, {required List<ObjectId> staffIds, required ObjectId self}) {
return (ship.from == Constant.shipFromSystemHelper || ship.from == Constant.shipFromServiceHelper) && !staffIds.contains(self);
}